dc582486455b v2.1.1

Fix the movement key mapping issue.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 13 Mar 2011 16:21:22 -0400
parents 89df25515c4c
children 32fc370cfba5
branches/tags v2.1.1
files plugin/gundo.vim

Changes

--- a/plugin/gundo.vim	Wed Mar 09 19:53:11 2011 -0500
+++ b/plugin/gundo.vim	Sun Mar 13 16:21:22 2011 -0400
@@ -432,8 +432,8 @@
 "{{{ Gundo buffer settings
 
 function! s:GundoMapGraph()"{{{
-    exec 'nnoremap <script> <silent>' . g:gundo_map_move_older . " :call <sid>GundoMove(1)<CR>"
-    exec 'nnoremap <script> <silent>' . g:gundo_map_move_newer . " :call <sid>GundoMove(-1)<CR>"
+    exec 'nnoremap <script> <silent> <buffer> ' . g:gundo_map_move_older . " :call <sid>GundoMove(1)<CR>"
+    exec 'nnoremap <script> <silent> <buffer> ' . g:gundo_map_move_newer . " :call <sid>GundoMove(-1)<CR>"
     nnoremap <script> <silent> <buffer> <CR>          :call <sid>GundoRevert()<CR>
     nnoremap <script> <silent> <buffer> o             :call <sid>GundoRevert()<CR>
     nnoremap <script> <silent> <buffer> <down>        :call <sid>GundoMove(1)<CR>