14f67813e95d

Map :q and :quit to close the gundo pane when you are in it.

fixes issue 10
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 20 Oct 2010 19:04:50 -0400
parents 00a7b7471c1c
children ed2ba1f7cd27
branches/tags (none)
files plugin/gundo.vim

Changes

--- a/plugin/gundo.vim	Wed Oct 20 19:03:35 2010 -0400
+++ b/plugin/gundo.vim	Wed Oct 20 19:04:50 2010 -0400
@@ -112,6 +112,8 @@
         nnoremap <script> <silent> <buffer> gg    gg:call <sid>GundoMove(1)<CR>
         nnoremap <script> <silent> <buffer> P     :call <sid>GundoPlayTo()<CR>
         nnoremap <script> <silent> <buffer> q     :call <sid>GundoToggle()<CR>
+        cabbrev  <script> <silent> <buffer> q     call <sid>GundoToggle()
+        cabbrev  <script> <silent> <buffer> quit  call <sid>GundoToggle()
     else
         let existing_gundo_window = bufwinnr(existing_gundo_buffer)