e26070847abc

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 09 Mar 2011 19:35:49 -0500
parents 0e7247b22a44 (diff) b059a86fd333 (current diff)
children 7fb1c286cca3
branches/tags (none)
files plugin/gundo.vim

Changes

--- a/doc/gundo.txt	Wed Mar 09 22:57:39 2011 +0100
+++ b/doc/gundo.txt	Wed Mar 09 19:35:49 2011 -0500
@@ -14,6 +14,8 @@
         3.4 gundo_right ............... |gundo_right|
         3.5 gundo_help ................ |gundo_help|
         3.6 gundo_disable ............. |gundo_disable|
+        3.7 gundo_map_move_older ...... |gundo_map_move_older|
+            gundo_map_move_newer ...... |gundo_map_move_newer|
     4. License ........................ |GundoLicense|
     5. Bugs ........................... |GundoBugs|
     6. Contributing ................... |GundoContributing|
@@ -176,6 +178,16 @@
 
 Default: 0 (Gundo is enabled as usual)
 
+------------------------------------------------------------------------------
+3.7 g:gundo_map_move_older, g:gundo_map_move_newer      *gundo_map_move_older*
+                                                        *gundo_map_move_newer*
+
+These options let you change the keys that navigate the undo graph. This is
+useful if you use a Dvorak keyboard and have changed your movement keys.
+
+Default: gundo_map_move_older = "j"
+         gundo_map_move_newer = "k"
+
 ==============================================================================
 4. License                                                      *GundoLicense*
 
--- a/plugin/gundo.vim	Wed Mar 09 22:57:39 2011 +0100
+++ b/plugin/gundo.vim	Wed Mar 09 19:35:49 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,10 +432,10 @@
 "{{{ 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>"
     nnoremap <script> <silent> <buffer> <CR>          :call <sid>GundoRevert()<CR>
     nnoremap <script> <silent> <buffer> o             :call <sid>GundoRevert()<CR>
-    nnoremap <script> <silent> <buffer> j             :call <sid>GundoMove(1)<CR>
-    nnoremap <script> <silent> <buffer> k             :call <sid>GundoMove(-1)<CR>
     nnoremap <script> <silent> <buffer> <down>        :call <sid>GundoMove(1)<CR>
     nnoremap <script> <silent> <buffer> <up>          :call <sid>GundoMove(-1)<CR>
     nnoremap <script> <silent> <buffer> gg            gg:call <sid>GundoMove(1)<CR>
--- a/site/index.html	Wed Mar 09 22:57:39 2011 +0100
+++ b/site/index.html	Wed Mar 09 19:35:49 2011 -0500
@@ -96,6 +96,7 @@
                             <li><a href="#gundo_right">g:gundo_right</a></li>
                             <li><a href="#gundo_help">g:gundo_help</a></li>
                             <li><a href="#gundo_disable">g:gundo_disable</a></li>
+                            <li><a href="#gundo_map_move">g:gundo_map_move_[older/newer]</a></li>
                         </ul>
                     </li>
                     <li><a href="#license">License</a></li>
@@ -302,6 +303,21 @@
                 </p>
 
                 <p>Default: 0 (Gundo is enabled as usual)</p>
+
+                <a name="gundo_map_move"></a>
+                <h2>g:gundo_map_move_[older/newer]</h2>
+
+                <p>
+                    These options let you change the keys that navigate the
+                    undo graph. This is useful if you use a Dvorak keyboard and
+                    have changed your movement keys.
+                </p>
+
+                <p>
+                    Default:<br/>
+                    gundo_map_move_older: "j"<br/>
+                    gundo_map_move_newer: "k"
+                </p>
             </section>
             <section>
                 <a name="license"></a>
--- a/site/publish.sh	Wed Mar 09 22:57:39 2011 +0100
+++ b/site/publish.sh	Wed Mar 09 19:35:49 2011 -0500
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 
+hg -R ~/src/sjl.bitbucket.org pull -u
 rsync --delete -az . ~/src/sjl.bitbucket.org/gundo.vim
 hg -R ~/src/sjl.bitbucket.org commit -Am 'gundo.vim: Update documentation.'
 hg -R ~/src/sjl.bitbucket.org push