diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-10-02 13:42:49 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-10-02 13:42:49 +1300 |
commit | 4bd748c22b26cb7f2b228a5afe2ac08433658c6f (patch) | |
tree | 3b96a81359f7be2bd8641954b51b7bf2bec97c85 /vim/after | |
parent | Correct protocol (diff) | |
download | dotfiles-4bd748c22b26cb7f2b228a5afe2ac08433658c6f.tar.gz dotfiles-4bd748c22b26cb7f2b228a5afe2ac08433658c6f.zip |
Tidy after scripts, add one for Gundo
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/plugin/eunuch.vim | 2 | ||||
-rw-r--r-- | vim/after/plugin/gundo.vim | 8 |
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> + |