From 1573e41df9a1ef9f338239c1a804c243024b851c Mon Sep 17 00:00:00 2001 From: bretello Date: Sun, 14 Mar 2021 15:50:16 +0100 Subject: [PATCH] vim: add ef,ec,es to open config files ef edits $DOTFILES/vim/functions.vim ec edits $DOTFILES/vim/plugins_config.vim es edits $DOTFILES/vim/shortcuts.vim --- vim/shortcuts.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vim/shortcuts.vim b/vim/shortcuts.vim index 6c60a3f..ce82eec 100644 --- a/vim/shortcuts.vim +++ b/vim/shortcuts.vim @@ -11,7 +11,10 @@ command! W execute 'w !sudo tee % > /dev/null' edit! "Reload vimrc on config change map e :e! ~/.vimrc -" FIXME: This results in some weird conflict with lightline +map ef :e! $DOTFILES/vim/functions.vim +map ec :e! $DOTFILES/vim/plugins_config.vim +map es :e! $DOTFILES/vim/shortcuts.vim + autocmd! bufwritepost ~/.vimrc source ~/.vimrc autocmd! bufwritepost $DOTFILES/vim/* source ~/.vimrc