-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc-plugins
165 lines (155 loc) · 4.93 KB
/
vimrc-plugins
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
call plug#begin()
" Plumbing
Plug 'tomtom/tlib_vim'
if has("unix")
let s:uname = system("uname")
if s:uname == "Darwin\n"
Plug 'Shougo/vimproc.vim', { 'do': 'make -f make_mac.mak' }
else
Plug 'Shougo/vimproc.vim', { 'do': 'make -f make_unix.mak' }
endif
endif
" Sane Behavior
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
Plug 'tommcdo/vim-exchange'
Plug 'vim-pandoc/vim-pandoc'
let g:pandoc#formatting#smart_autoformat_on_cursor_moved = 1
let g:pandoc#formatting#mode="hA"
let g:pandoc#formatting#textwidth=80
Plug 'sickill/vim-pasta'
Plug 'svermeulen/vim-easyclip'
let g:EasyClipUseSubstituteDefaults = 1
Plug 'myusuf3/numbers.vim'
Plug 'ervandew/supertab'
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
Plug 'Konfekt/FastFold'
Plug 'haya14busa/incsearch.vim'
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
set hlsearch
let g:incsearch#auto_nohlsearch = 1
map n <Plug>(incsearch-nohl-n)
map N <Plug>(incsearch-nohl-N)
map * <Plug>(incsearch-nohl-*)
map # <Plug>(incsearch-nohl-#)
map g* <Plug>(incsearch-nohl-g*)
map g# <Plug>(incsearch-nohl-g#)
" Utilities
Plug 'mhinz/vim-signify'
let g:signify_cursorhold_normal = 1
Plug 'Valloric/YouCompleteMe', { 'do': './install.sh --gocode-completer' }
let g:ycm_key_list_select_completion = ['<C-j>']
let g:ycm_key_list_previous_completion = ['<C-k>']
let g:ycm_key_list_invoke_completion = ['<tab>']
let g:ycm_semantic_triggers = {
\ 'c' : ['->', '.'],
\ 'objc' : ['->', '.'],
\ 'cpp,objcpp' : ['->', '.', '::'],
\ 'perl' : ['->'],
\ 'php' : ['->', '::'],
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir,go' : ['.'],
\ 'lua' : ['.', ':'],
\ 'erlang' : [':'],
\ 'haskell' : ['.'],
\ }
Plug 'scrooloose/syntastic'
let g:syntastic_auto_loc_list=1
Plug 'tpope/vim-fugitive'
Plug 'int3/vim-extradite'
Plug 'kien/rainbow_parentheses.vim'
Plug 'moll/vim-bbye'
Plug 'junegunn/vim-easy-align'
Plug 'benmills/vimux'
Plug 'benmills/vimux-golang'
" Colorschemes
Plug 'nanotech/jellybeans.vim'
Plug 'w0ng/vim-hybrid'
Plug 'altercation/vim-colors-solarized'
let g:solarized_contrast="high"
let g:solarized_visibility="normal"
" Snippets
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
" Panels
Plug 'dnhgff/vache'
Plug 'Shougo/unite.vim'
let g:unite_source_grep_max_candidates=10000
if executable('ag')
set grepprg=ag\ --nogroup\ --column\ --smart-case\ --nocolor\ --follow
set grepformat=%f:%l:%c:%m
let g:unite_source_grep_command='ag'
let g:unite_source_grep_default_opts='--nocolor --nogroup -S'
let g:unite_source_grep_recursive_opt=''
elseif executable('ack')
set grepprg=ack\ --nogroup\ --column\ --smart-case\ --nocolor\ --follow\ $*
set grepformat=%f:%l:%c:%m
else
set grepprg=grep\ --exclude-dir\ .git\ -nrI\ $*\ .\ /dev/null
endif
let g:unite_source_file_rec_max_cache_files = 0
let g:unite_force_overwrite_statusline = 0
Plug 'Shougo/neomru.vim'
Plug 'majutsushi/tagbar'
let g:tagbar_type_go = {
\ 'ctagstype' : 'go',
\ 'kinds' : [
\ 'p:package',
\ 'i:imports:1',
\ 'c:constants',
\ 'v:variables',
\ 't:types',
\ 'n:interfaces',
\ 'w:fields',
\ 'e:embedded',
\ 'm:methods',
\ 'r:constructor',
\ 'f:functions'
\ ],
\ 'sro' : '.',
\ 'kind2scope' : {
\ 't' : 'ctype',
\ 'n' : 'ntype'
\ },
\ 'scope2kind' : {
\ 'ctype' : 't',
\ 'ntype' : 'n'
\ },
\ 'ctagsbin' : 'gotags',
\ 'ctagsargs' : '-sort -silent'
\ }
Plug 'sjl/gundo.vim'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/fzf'
Plug 'dahu/vim-lotr'
let g:lotr_left=1
let g:lotr_width=40
" Language-Specific
Plug 'fatih/vim-go'
Plug 'ClockworkNet/vim-junos-syntax', { 'for': 'junos' }
Plug 'vim-scripts/nginx.vim', { 'for': 'nginx' }
Plug 'dbakker/vim-lint', { 'for': 'vim' }
Plug 'vim-perl/vim-perl', { 'for': 'perl' }
Plug 'c9s/perlomni.vim', { 'for': 'perl' }
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'ekalinin/Dockerfile.vim'
Plug 'maksimr/vim-jsbeautify'
Plug 'einars/js-beautify'
Plug 'dag/vim-fish'
" Airline conditionally loads stuff based on what was loaded before
Plug 'bling/vim-airline'
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline#extensions#branch#symbol = ''
let g:airline#extensions#readonly#symbol = ''
let g:airline_symbols.linenr = ''
let g:airline#extensions#hunks#non_zero_only = 1
let g:airline_theme="solarized"
call plug#end()