[gnome-builder] stash cursor position before selecting current word for search



commit 5169e0a5956b893d1e80b2fb27c8c4c4a7372adc
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 22 02:24:45 2015 -0700

    stash cursor position before selecting current word for search

 data/keybindings/vim.css |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index a3a4328..daf12c2 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -182,12 +182,14 @@
                  "clear-count" () };
 
   bind "<shift>k" { "clear-selection" ()
+                    "save-insert-mark" ()
                     "movement" (previous-word-end, 0, 1, 1)
                     "movement" (next-word-start, 0, 1, 0)
                     "movement" (next-word-end, 1, 0, 1)
                     "request-documentation" ()
                     "clear-count" ()
-                    "clear-selection" () };
+                    "clear-selection" ()
+                    "restore-insert-mark" () };
 
   /* swallow the current character and go to insert */
   bind "s" { "begin-macro" ()


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