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

fixes issue 10
This commit is contained in:
Steve Losh 2010-10-20 19:04:50 -04:00
parent d92ceb5242
commit 68b2f953df

View File

@ -112,6 +112,8 @@ function! s:GundoOpenBuffer()
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)