This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
/
Plug.vim
326 lines (253 loc) · 8.27 KB
/
Plug.vim
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
call plug#begin('~/.vim/plugged')
" Defaults {{{
Plug 'tpope/vim-sensible'
" }}}
" Navigation {{{
" Displays tags in a window, ordered by scope
Plug 'majutsushi/tagbar'
" A tree explorer plugin for vim
Plug 'scrooloose/nerdtree'
" combine with netrw to create a delicious salad dressing
Plug 'tpope/vim-vinegar'
" project configuration via 'projections'
Plug 'tpope/vim-projectionist'
" A command-line fuzzy finder written in Go
let g:fzf_command_prefix = 'FZF'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" Active fork of kien/ctrlp.vim. Fuzzy file, buffer, mru, tag, etc finder.
Plug 'ctrlpvim/ctrlp.vim'
" }}}
" UI Additions {{{
" Colors {{{
Plug 'dolio/vim-hybrid'
Plug 'morhetz/gruvbox'
Plug 'chriskempson/base16-vim'
Plug 'mhartington/oceanic-next'
Plug 'ayu-theme/ayu-vim'
" }}}
" lean & mean status/tabline for vim that's light as air
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" Show a diff via Vim sign column.
Plug 'mhinz/vim-signify'
" Plugin to toggle, display and navigate marks
Plug 'kshenoy/vim-signature'
" Better whitespace highlighting for Vim
Plug 'ntpeters/vim-better-whitespace'
" Toggle the cursor shape in the terminal for Vim.
Plug 'jszakmeister/vim-togglecursor'
" }}}
" Commands {{{
function! InstallVipe(info)
if a:info.status ==# 'installed' || a:info.force
if has('unix')
let s:uname = system('uname -s')
if s:uname =~? 'Darwin'
silent !rm -f /usr/local/bin/vipe
silent !ln -s `pwd`/vipe /usr/local/bin || true
else
silent !ln -s `pwd`/vipe ~/bin || true
endif
endif
endif
endfunction
function! InstallVimProc(info)
if a:info.status ==# 'installed' || a:info.force
if has('unix')
let s:uname = system('uname -s')
if s:uname =~? 'Darwin'
silent !make -f make_mac.mak
elseif s:uname =~? 'Linux'
silent !make
else
silent !gmake
endif
elseif has('win32unix')
silent !make -f make_cygwin.mak
elseif has('win32')
silent !tools\update-dll-mingw
endif
endif
endfunction
" asynchronous process manager; run :VimProcBang to run a command and echo the results
Plug 'Shougo/vimproc.vim', { 'do': function('InstallVimProc') }
" comment stuff out (via leader-/)
Plug 'tomtom/tcomment_vim'
" quoting/parenthesizing made simple; e.g. ysiw) to wrap word in parens
Plug 'tpope/vim-surround'
" a Git wrapper so awesome, it should be illegal; :Gblame, etc
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rhubarb'
" easily search for, substitute, and abbreviate multiple variants of a word
Plug 'tpope/vim-abolish'
" Vim sugar for the UNIX shell commands that need it the most; e.g. :Find, :Wall
Plug 'tpope/vim-eunuch'
" Run a command over every entry in the quickfix list (:Cdo) or location list (:Ldo).
Plug 'Peeja/vim-cdo'
" Vim script for text filtering and alignment; e.g. :Tabularize /,
Plug 'godlygeek/tabular'
" Vim plugin for the Perl module / CLI script 'ack'
Plug 'mileszs/ack.vim'
" Send test commands to a pipe.
Plug 'luan/vipe', { 'do': function('InstallVipe') }
" Asynchronous Lint Engine
Plug 'w0rp/ale'
" Functions to toggle the [Location List] and the [Quickfix List] windows.
Plug 'milkypostman/vim-togglelist'
" True Sublime Text style multiple selections for Vim
Plug 'terryma/vim-multiple-cursors'
" Add emacs/bash/cocoa key bindings to vim, in insert and command-line modes.
Plug 'maxbrunsfeld/vim-emacs-bindings'
" The ultimate undo history visualizer for VIM
Plug 'mbbill/undotree'
" Distraction-free writing in Vim
Plug 'junegunn/goyo.vim'
" All the world's indeed a stage and we are merely players
Plug 'junegunn/limelight.vim'
" Make ^a and ^x work properly with dates
Plug 'tpope/vim-speeddating'
" }}}
" Automatic Helpers {{{
" wisely add "end" in ruby, endfunction/endif/more in vim script, etc
Plug 'tpope/vim-endwise'
" enable repeating supported plugin maps with '.'
Plug 'tpope/vim-repeat'
" automatically adjusts 'shiftwidth' and 'expandtab' heuristically based on the current file
Plug 'tpope/vim-sleuth'
" pairs of handy bracket mappings; e.g. [<Space> and ]<Space> add newlines before and after the cursor line
Plug 'tpope/vim-unimpaired'
" Reorder delimited items
Plug 'machakann/vim-swap'
" Simplifies the transition between multiline and single-line code
Plug 'AndrewRadev/splitjoin.vim'
" Dark powered asynchronous completion framework for neovim/Vim8
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
Plug 'zchee/deoplete-clang' " C/C++
Plug 'zchee/deoplete-go' " Golang
Plug 'sebastianmarkow/deoplete-rust' " Rust
Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } " Javascript
Plug 'Shougo/neco-syntax'
Plug 'Shougo/neco-vim'
let g:deoplete#enable_at_startup = 1
" Clang based syntax highlighting for Neovim
Plug 'arakashic/chromatica.nvim'
if !has('nvim') || $ALL_PLUGINS ==# 'true'
Plug 'roxma/vim-hug-neovim-rpc'
endif
" Provide easy code formatting in Vim by integrating existing code formatters.
Plug 'Chiel92/vim-autoformat'
" displays information in echo area from echodoc plugin.
Plug 'Shougo/echodoc.vim'
" Make Vim persist editing state without fuss
Plug 'kopischke/vim-stay'
" Make Vim handle line and column numbers in file names with a minimum of fuss
Plug 'kopischke/vim-fetch'
" Speed up Vim by updating folds only when called-for.
Plug 'Konfekt/FastFold'
" }}}
" Text objects {{{
" allows you to configure % to match more than just single characters
Plug 'vim-scripts/matchit.zip'
" Create your own text objects
Plug 'kana/vim-textobj-user'
" Underscore text-object for Vim
Plug 'lucapette/vim-textobj-underscore'
" custom text object for selecting ruby blocks
Plug 'nelstrom/vim-textobj-rubyblock'
" A convenient text object for last pasted text
Plug 'saaguero/vim-textobj-pastedtext'
"Text objects for functions
Plug 'kana/vim-textobj-function'
" A Vim text object for ERB blocks.
Plug 'whatyouhide/vim-textobj-erb'
" Vim plugin that provides additional text objects
Plug 'wellle/targets.vim'
" Text objects for foldings
Plug 'kana/vim-textobj-fold'
" }}}'
" Snippets {{{
"UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
if has('python') || has('python3')
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
endif
" }}}
" Language specific {{{
" Ruby {{{
Plug 'tpope/vim-rails', { 'for': ['ruby', 'rake'] }
Plug 'tpope/vim-rake', { 'for': ['ruby', 'rake'] }
Plug 'tpope/vim-bundler', { 'for': ['ruby', 'rake'] }
Plug 'ecomba/vim-ruby-refactoring', { 'for': ['ruby', 'rake'] }
Plug 'tpope/vim-cucumber', { 'for': ['cucumber'] }
" }}}
" Clojure {{{
Plug 'tpope/vim-classpath'
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Plug 'tpope/vim-salve', { 'for': 'clojure' }
Plug 'guns/vim-sexp', { 'for': 'clojure' }
Plug 'tpope/vim-sexp-mappings-for-regular-people', { 'for': 'clojure' }
" }}}
" Go {{{
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
" }}}
" Markdown {{{
Plug 'tpope/vim-markdown', { 'for': 'markdown' }
Plug 'shime/vim-livedown', { 'for': 'markdown' }
" }}}
" JavaScript {{{
Plug 'othree/yajs.vim'
Plug 'othree/es.next.syntax.vim'
Plug 'othree/javascript-libraries-syntax.vim'
Plug 'ternjs/tern_for_vim', {'do': 'npm install'}
Plug 'mxw/vim-jsx'
" }}}
" TypeScript {{{
Plug 'leafgarland/typescript-vim'
" }}}
" Vue {{{
Plug 'posva/vim-vue', { 'for': 'vue' }
" }}}
" CSS / HTML {{{
Plug 'othree/html5.vim'
Plug 'mattn/emmet-vim'
Plug 'cakebaker/scss-syntax.vim'
Plug 'hail2u/vim-css3-syntax'
Plug 'gregsexton/MatchTag'
" }}}
" VimL {{{
Plug 'ynkdir/vim-vimlparser', { 'for': 'vim' }
Plug 'syngan/vim-vimlint', { 'for': 'vim' }
" }}}
" Fish {{{
Plug 'dag/vim-fish', { 'for': 'fish' }
" }}}
" Elm {{{
Plug 'elmcast/elm-vim', { 'for': 'elm' }
" }}}
" Rust {{{
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
" }}}
" Misc {{{
Plug 'PotatoesMaster/i3-vim-syntax'
Plug 'keith/tmux.vim'
Plug 'kurayama/systemd-vim-syntax'
Plug 'iloginow/vim-stylus'
Plug 'chr4/nginx.vim'
Plug 'uarun/vim-protobuf'
Plug 'peterhoeg/vim-qml'
Plug 'keith/rspec.vim'
Plug 'hashivim/vim-terraform'
Plug 'PProvost/vim-ps1'
Plug 'ciaranm/securemodelines' " Secure modeline https://github.com/numirias/security/blob/master/doc/2019-06-04_ace-vim-neovim.md
Plug 'jceb/vim-orgmode'
" }}}
" }}}
source $HOME/.vimrc.local.plugins
call plug#end()