vim: Load other always-on plugins too
And move the plugin specific keybindings into 40-keybindings.vim. `packloadall` sources the plugins directly in contrast to `packadd`. Because of that we can access the `g:loaded_*` variables and do not have to specify our own keybindings for vim-surround as now the user bindings are loaded later and overwrite possible clashes.
This commit is contained in:
@@ -83,3 +83,11 @@ if (has('nvim'))
|
||||
elseif (has('terminal'))
|
||||
nmap <leader><CR> :terminal<CR>
|
||||
endif
|
||||
|
||||
" Plugin specific bindings
|
||||
if (get(g:, 'loaded_fzf'))
|
||||
nmap <leader>f :Files<CR>
|
||||
if (get(g:, 'loaded_gutentags'))
|
||||
nmap <leader>t :Tags<CR>
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user