From 4bd748c22b26cb7f2b228a5afe2ac08433658c6f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 2 Oct 2012 13:42:49 +1300 Subject: Tidy after scripts, add one for Gundo --- vim/after/plugin/eunuch.vim | 2 +- vim/after/plugin/gundo.vim | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 vim/after/plugin/gundo.vim (limited to 'vim/after') diff --git a/vim/after/plugin/eunuch.vim b/vim/after/plugin/eunuch.vim index 2b989271..e96275dd 100644 --- a/vim/after/plugin/eunuch.vim +++ b/vim/after/plugin/eunuch.vim @@ -1,4 +1,4 @@ -" Discard Eunuch's remapping of :W. +" Replace Eunuch's remapping of :W if has("user_commands") command! -bang -complete=file -nargs=? W w endif diff --git a/vim/after/plugin/gundo.vim b/vim/after/plugin/gundo.vim new file mode 100644 index 00000000..77d62a4d --- /dev/null +++ b/vim/after/plugin/gundo.vim @@ -0,0 +1,8 @@ +" Only run this is function available +if !exists(':GundoToggle') + finish +endif + +" Gundo key binding +nnoremap g ::GundoToggle + -- cgit v1.2.3