[gnome-builder] vim: add +,Return,Enter to c,d and v mode
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: add +,Return,Enter to c,d and v mode
- Date: Sun, 15 Nov 2015 15:48:32 +0000 (UTC)
commit 4c88d2be13df78049448620d6cef82515043f7af
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Nov 15 16:46:31 2015 +0100
vim: add +,Return,Enter to c,d and v mode
data/keybindings/vim.css | 108 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 7e3f5d5..04e7aaa 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -589,6 +589,52 @@
"delete-selection" ()
"end-macro" () };
+ bind "plus" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 1)
+ "movement" (last-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "reindent" ()
+ "clear-count" ()
+ "set-mode" ("vim-insert", permanent) };
+ bind "KP_Enter" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 1)
+ "movement" (last-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "reindent" ()
+ "clear-count" ()
+ "set-mode" ("vim-insert", permanent) };
+ bind "<shift>KP_Enter" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 1)
+ "movement" (last-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "reindent" ()
+ "clear-count" ()
+ "set-mode" ("vim-insert", permanent) };
+ bind "Return" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 1)
+ "movement" (last-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "reindent" ()
+ "clear-count" ()
+ "set-mode" ("vim-insert", permanent) };
+ bind "<shift>Return" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 1)
+ "movement" (last-char, 1, 0, 0)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "reindent" ()
+ "clear-count" ()
+ "set-mode" ("vim-insert", permanent) };
+
bind "<shift>asciicircum" { "begin-macro" ()
"set-mode" ("vim-insert", permanent)
"movement" (first-nonspace-char, 1, 1, 1)
@@ -1053,6 +1099,47 @@
"restore-insert-mark" ()
"end-macro" () };
+ bind "plus" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 0)
+ "movement" (next-line, 1, 0, 1)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
+ "clear-count" () };
+ bind "KP_Enter" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 0)
+ "movement" (next-line, 1, 0, 1)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
+ "clear-count" () };
+ bind "<shift>KP_Enter" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 0)
+ "movement" (next-line, 1, 0, 1)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
+ "clear-count" () };
+ bind "Return" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 0)
+ "movement" (next-line, 1, 0, 1)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
+ "clear-count" () };
+ bind "<shift>Return" { "begin-macro" ()
+ "movement" (first-char, 0, 1, 0)
+ "movement" (next-line, 1, 0, 0)
+ "movement" (next-line, 1, 0, 1)
+ "copy-clipboard" ()
+ "delete-selection" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
+ "clear-count" () };
+
bind "b" { "begin-macro" ()
"movement" (previous-word-end, 1, 0, 1)
"copy-clipboard" ()
@@ -1807,6 +1894,27 @@
"clear-selection" ()
"end-macro" ()
"set-mode" ("vim-normal", permanent) };
+
+ bind "plus" { "begin-macro" ()
+ "movement" (next-line, 1, 0, 1)
+ "movement" (first-nonspace-char, 1, 1, 0)
+ "clear-count" () };
+ bind "KP_Enter" { "begin-macro" ()
+ "movement" (next-line, 1, 0, 1)
+ "movement" (first-nonspace-char, 1, 1, 0)
+ "clear-count" () };
+ bind "<shift>KP_Enter" { "begin-macro" ()
+ "movement" (next-line, 1, 0, 1)
+ "movement" (first-nonspace-char, 1, 1, 0)
+ "clear-count" () };
+ bind "Return" { "begin-macro" ()
+ "movement" (next-line, 1, 0, 1)
+ "movement" (first-nonspace-char, 1, 1, 0)
+ "clear-count" () };
+ bind "<shift>Return" { "begin-macro" ()
+ "movement" (next-line, 1, 0, 1)
+ "movement" (first-nonspace-char, 1, 1, 0)
+ "clear-count" () };
}
@binding-set builder-vim-source-view-visual-i
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]