X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/775006605902e29dac10d5b56f07cf4728b5c902..77941ca461b6e164533bbc88b08b9ba69490a07c:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index b3947e6..c365418 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -46,6 +46,7 @@ Plugin 'Raimondi/delimitMate' Plugin 'SirVer/ultisnips' Plugin 'Lokaltog/vim-easymotion' Plugin 'junegunn/vim-easy-align' +Plugin 'chrisbra/checkattach' " remove entries first set runtimepath -=$HOME/.vim @@ -231,12 +232,6 @@ augroup cursor_pos \ endif augroup END -" auto source vimrc when saved {{{2 -augroup source_vimrc - au! - autocmd bufwritepost vimrc source $MYVIMRC -augroup END - " bindings {{{1 " allow both and / to be @@ -393,9 +388,19 @@ let g:airline_detect_whitespace=2 let g:airline#extensions#tabline#enabled = 1 let g:airline_powerline_fonts = 1 +" checkattach {{{2 +let g:checkattach_filebrowser = 'ranger' + " Gundo {{{2 nnoremap :GundoToggle +" fswitch {{{2 +nnoremap ff :FSHere +nnoremap fl :FSRight +nnoremap fh :FSLeft +nnoremap fL :FSSplitRight +nnoremap fH :FSSplitLeft + " fugitive {{{2 nmap dd :tab split \| Gdiff \| wincmd h " delete fugitive buffers when closed @@ -438,7 +443,11 @@ let g:tagbar_iconchars = ['+', '-'] " UltiSnips {{{2 let g:UltiSnipsEditSplit = 'vertical' -let g:UltiSnipsSnippetsDir = "$XDG_CONFIG_HOME/vim/ultisnips" +let g:UltiSnipsSnippetsDir = expand("$XDG_CONFIG_HOME/vim/ultisnips") +let g:UltiSnipsSnippetDirectories = ["UltiSnips", "ultisnips"] +let g:UltiSnipsExpandTrigger = "" +let g:UltiSnipsJumpForwardTrigger = "" +let g:UltiSnipsJumpBackwardTrigger = "" " youcompleteme {{{2 let g:ycm_extra_conf_globlist = ['~/src/*','/mnt/data/src/*']