aboutsummaryrefslogtreecommitdiff
path: root/vim/after/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-10-02 13:42:49 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-10-02 13:42:49 +1300
commit4bd748c22b26cb7f2b228a5afe2ac08433658c6f (patch)
tree3b96a81359f7be2bd8641954b51b7bf2bec97c85 /vim/after/plugin
parentCorrect protocol (diff)
downloaddotfiles-4bd748c22b26cb7f2b228a5afe2ac08433658c6f.tar.gz
dotfiles-4bd748c22b26cb7f2b228a5afe2ac08433658c6f.zip
Tidy after scripts, add one for Gundo
Diffstat (limited to 'vim/after/plugin')
-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>
+