9cc5f6d3bcb8

Rearrange default settings and tweak some spacing.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 09 Mar 2011 19:29:21 -0500
parents 7eecd2329bf0
children 7269f85f8278
branches/tags (none)
files plugin/gundo.vim

Changes

--- a/plugin/gundo.vim	Sun Feb 27 15:53:34 2011 -0800
+++ b/plugin/gundo.vim	Wed Mar 09 19:29:21 2011 -0500
@@ -60,6 +60,12 @@
 if !exists('g:gundo_help')"{{{
     let g:gundo_help = 1
 endif"}}}
+if !exists("g:gundo_map_move_older")"{{{
+    let g:gundo_map_move_older = 'j'
+endif"}}}
+if !exists("g:gundo_map_move_newer")"{{{
+    let g:gundo_map_move_newer = 'k'
+endif"}}}
 
 "}}}
 
@@ -426,14 +432,8 @@
 "{{{ Gundo buffer settings
 
 function! s:GundoMapGraph()"{{{
-    if !exists("g:gundo_map_move_older")
-        let g:gundo_map_move_older = 'j'
-    endif
-    if !exists("g:gundo_map_move_newer")
-        let g:gundo_map_move_newer = 'k'
-    endif
-    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>' . g:gundo_map_move_older . " :call <sid>GundoMove(1)<CR>"
+    exec 'nnoremap <script> <silent>' . 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>