aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/after/plugin/eunuch.vim2
-rw-r--r--vim/after/plugin/gundo.vim8
2 files changed, 9 insertions, 1 deletions
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<bang> <args>
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 <silent> <leader>g :<C-U>:GundoToggle<CR>
+