mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-05 01:01:30 +01:00
vim: add <leader>ef,ec,es to open config files
<leader>ef edits $DOTFILES/vim/functions.vim <leader>ec edits $DOTFILES/vim/plugins_config.vim <leader>es edits $DOTFILES/vim/shortcuts.vim
This commit is contained in:
parent
201f272aa4
commit
1573e41df9
|
@ -11,7 +11,10 @@ command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||||
|
|
||||||
"Reload vimrc on config change
|
"Reload vimrc on config change
|
||||||
map <leader>e :e! ~/.vimrc<CR>
|
map <leader>e :e! ~/.vimrc<CR>
|
||||||
" FIXME: This results in some weird conflict with lightline
|
map <leader>ef :e! $DOTFILES/vim/functions.vim<CR>
|
||||||
|
map <leader>ec :e! $DOTFILES/vim/plugins_config.vim<CR>
|
||||||
|
map <leader>es :e! $DOTFILES/vim/shortcuts.vim<CR>
|
||||||
|
|
||||||
autocmd! bufwritepost ~/.vimrc source ~/.vimrc
|
autocmd! bufwritepost ~/.vimrc source ~/.vimrc
|
||||||
autocmd! bufwritepost $DOTFILES/vim/* source ~/.vimrc
|
autocmd! bufwritepost $DOTFILES/vim/* source ~/.vimrc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user