-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc.plugins
54 lines (47 loc) · 2.15 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
" vim: set ts=2 sw=2 et fdm=marker:
" Remove declared plugins
function! s:UnPlug(plug_name)
if has_key(g:plugs, a:plug_name)
call remove(g:plugs, a:plug_name)
endif
endfunction
command! -nargs=1 UnPlug call s:UnPlug(<args>)
Plug 'tpope/vim-eunuch' " File operations
Plug 'tpope/vim-unimpaired' " Useful mappings
Plug 'tpope/vim-surround' " Change surroundings
Plug 'tpope/vim-repeat' " Enable repeating supported plugin maps with '.'
Plug 'tpope/vim-commentary' " Toggle comments: line=gcc, block=gcip, visual=gc
Plug 'tpope/vim-characterize' " Enhance ga with unicode character names
Plug 'tpope/vim-rsi' " Readline-style input makes ctrl-a and ctrl-e work
Plug 'romainl/vim-qlist' " Display results of [I in quickfix window
Plug 'flazz/vim-colorschemes', {'do': ':colorscheme badwolf'}
Plug 'kjwon15/vim-transparent' " Enable transparent terminal by unsetting the vim bg color. Restore bg color with :TransparentDisable
Plug 'terryma/vim-multiple-cursors' " Sublime Text-like multiple selection. next=^n, prev=^p, skip=^x
Plug 'terryma/vim-expand-region' " IntelliJ-like context-aware selection. expand=+, contract=_
"Plug 'editorconfig/editorconfig-vim' " Universal editor config files - TODO prevent trimming trailing whitespace on save when in git add -p
Plug 'vim-scripts/PreserveNoEOL'
Plug 'vim-scripts/selection_eval.vim' " Evaluate selection with <c-e><c-s>
Plug 'mbbill/undotree' " Browse through undo history
Plug 'd10n/vim-toggle-help' " Toggle help off and on with <F1>
Plug 'bkad/CamelCaseMotion' " Shift+(w|b|e) through camelCase words
"
" Press zR to open all folds and zM to close all folds
" Press zo to open one fold and zc to close one fold
"
" CamelCaseMotion {{{1
" w/b/e through camelCase and under_score
map <silent> <S-W> <Plug>CamelCaseMotion_w
map <silent> <S-B> <Plug>CamelCaseMotion_b
map <silent> <S-E> <Plug>CamelCaseMotion_e
"map <silent> w <Plug>CamelCaseMotion_w
"map <silent> b <Plug>CamelCaseMotion_b
"map <silent> e <Plug>CamelCaseMotion_e
"sunmap w
"sunmap b
"sunmap e
" undotree {{{1
nnoremap <F5> :UndotreeToggle<cr>
" vimrc.plugins.local {{{1
if filereadable($HOME . '/.vimrc.plugins.local')
source ~/.vimrc.plugins.local
endif