-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimpagerrc.symlink
68 lines (53 loc) · 1.44 KB
/
vimpagerrc.symlink
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
" vi: ft=vim
if has('nvim')
" set up nvim runtime paths
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
endif
call plug#begin('~/.vim/bundle')
" Visuals
Plug 'chriskempson/base16-vim'
Plug 'machakann/vim-highlightedyank'
" Motions
Plug 'justinmk/vim-sneak'
" Meta
Plug 'kana/vim-textobj-user'
" Text Objects
Plug 'Julian/vim-textobj-variable-segment'
Plug 'kana/vim-textobj-entire'
Plug 'kana/vim-textobj-indent'
Plug 'kana/vim-textobj-line'
Plug 'wellle/targets.vim'
" Tmux
Plug 'roxma/vim-tmux-clipboard'
Plug 'tmux-plugins/vim-tmux-focus-events'
call plug#end()
" automatically match the theme to the one set by base16-shell
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
" make comments italic
highlight Comment cterm=italic
" Snakemake Syntax Highlighting
au BufNewFile,BufRead Snakefile set syntax=snakemake
au BufNewFile,BufRead *.rules set syntax=snakemake
au BufNewFile,BufRead *.snakefile set syntax=snakemake
au BufNewFile,BufRead *.snake set syntax=snakemake
" Common options
set hlsearch
set ignorecase
set smartcase
set nomodifiable
" Scroll Offset (outside of less mode)
set scrolloff=5
set sidescrolloff=5
" vimpager specifics
let g:vimpager = {}
let g:less = {}
let g:less.enabled = 1
let g:less.scrolloff = 5
let g:less.hlsearch = 1
let g:vimpager.passthrough = 1
let g:vimpager.disable_x11 = 1
let g:vimpager.disable_ansiesc = 1