[gnome-builder: 2/6] vim: make "overwrite" mode visually display "Replace"



commit 4c0d6485cd401d3d42400c1e810b0fddc8b70a0c
Author: Christian Hergert <christian hergert me>
Date:   Wed Sep 16 14:06:12 2015 -0700

    vim: make "overwrite" mode visually display "Replace"

 data/keybindings/vim.css |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 572e271..c63e863 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -379,7 +379,7 @@
 
   /* overwrite */
   bind "<shift>r" { "begin-macro" ()
-                    "set-mode" ("vim-insert", permanent)
+                    "set-mode" ("vim-replace", permanent)
                     "set-overwrite" (1) };
 
  /* jump to sub-mode */
@@ -1523,6 +1523,15 @@ IdeSourceViewMode.vim-insert {
                     builder-vim-source-view;
 }
 
+IdeSourceViewMode.vim-replace {
+  -IdeSourceViewMode-suppress-unbound: false;
+  -IdeSourceViewMode-block-cursor: false;
+  -IdeSourceViewMode-display-name: "Replace";
+
+  gtk-key-bindings: builder-vim-source-view-insert,
+                    builder-vim-source-view;
+}
+
 IdeSourceViewMode.vim-visual {
   -IdeSourceViewMode-suppress-unbound: true;
   -IdeSourceViewMode-block-cursor: true;


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