[gnome-builder/wip/vim] vim: `$` jumps to end of line in normal mode.



commit 34c9be43b585aa308fa7322f9b93644a14682544
Author: Christian Hergert <christian hergert me>
Date:   Mon Sep 29 19:18:42 2014 -0700

    vim: `$` jumps to end of line in normal mode.
    
    There might be some debate on whether or not we should actually move
    backwards one character from here. But I don't have a right answer so
    I'll just leave the obvious implementation.

 src/editor/gb-editor-vim.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 5de7fc1..b4e94d2 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -904,6 +904,13 @@ gb_editor_vim_handle_normal (GbEditorVim *vim,
 
       break;
 
+    case GDK_KEY_dollar:
+      /*
+       * Move to the end of the line.
+       */
+      gb_editor_vim_move_line_end (vim);
+      return TRUE;
+
     default:
       break;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]