Plug 'kshenoy/vim-signature'
Plug 'majutsushi/tagbar'
Plug 'octol/vim-cpp-enhanced-highlight'
-Plug 'raimondi/delimitmate'
+if !has('nvim')
+ Plug 'raimondi/delimitmate' " {{{2
+ let delimitMate_expand_cr = 2
+ let g:delimitMate_expand_space = 1
+ "}}}
+end
Plug 'sgeb/vim-diff-fold'
Plug 'skywind3000/asyncrun.vim' " {{{2
command! -bang -nargs=* -complete=file Make AsyncRun -save=2 -program=make @ <args>
nnoremap <silent> <C-W>cj :CloseBelowWindow<CR>
nnoremap <silent> <C-W>ck :CloseAboveWindow<CR>
-" delimitmate {{{2
-let delimitMate_expand_cr = 2
-let g:delimitMate_expand_space = 1
" fswitch {{{2
nnoremap <silent> <Leader>ff :FSHere<CR>
if buflisted(l:status_buffer)
execute 'bdelete '.l:status_buffer
else
- Git
- 16wincmd_
+ execute 'Git'
+ if !empty(FugitiveGitDir())
+ " only resize status if Git was sucessful
+ 16wincmd_
+ endif
endif
endfunction
command! GitToggle :call GitToggle()
endfunction
nnoremap <silent> coS :call SwitchSpell()<CR>
-" fix spelling with first choice
-nnoremap <Leader>f 1z=
" gitdir or home {{{2
" from derek wyatt: