[gnome-builder] libide: fix some inclusive/exclusive bugs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: fix some inclusive/exclusive bugs
- Date: Tue, 24 Mar 2015 00:02:49 +0000 (UTC)
commit b7415861e84d8d5926e9fed3fb61e05a6b739a2d
Author: Christian Hergert <christian hergert me>
Date: Fri Mar 6 11:45:40 2015 -0800
libide: fix some inclusive/exclusive bugs
data/keybindings/vim.css | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 7fd8e87..7931cdb 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -90,17 +90,17 @@
bind "i" { "set-mode" ("vim-insert", permanent) };
/* insert after cursor */
- bind "a" { "set-mode" ("vim-insert", permanent)
- "movement" (next-char, 0, 0, 0) };
- bind "<shift>a" { "set-mode" ("vim-insert", permanent)
- "movement" (last-char, 0, 0, 0) };
+ bind "a" { "movement" (next-char, 0, 0, 0)
+ "set-mode" ("vim-insert", permanent) };
+ bind "<shift>a" { "movement" (last-char, 0, 0, 0)
+ "set-mode" ("vim-insert", permanent) };
/* insert at first non-whitespace character */
- bind "<shift>i" { "movement" (first-nonspace-char, 0, 0, 0)
+ bind "<shift>i" { "movement" (first-nonspace-char, 0, 1, 0)
"set-mode" ("vim-insert", permanent) };
/* insert line after current, insert mode */
- bind "o" { "movement" (last-char, 0, 0, 0)
+ bind "o" { "movement" (line-end, 0, 1, 0)
"insert-at-cursor-and-indent" ("\n")
"set-mode" ("vim-insert", permanent) };
@@ -111,10 +111,10 @@
"set-mode" ("vim-insert", permanent) };
/* swallow the current character and go to insert */
- bind "s" { "set-mode" ("vim-insert", permanent)
- "movement" (next-char, 1, 0, 1)
+ bind "s" { "movement" (next-char, 1, 1, 1)
"copy-selection" ()
- "delete-selection" () };
+ "delete-selection" ()
+ "set-mode" ("vim-insert", permanent) };
bind "Left" { "movement" (previous-char, 0, 1, 1) };
bind "Right" { "movement" (next-char, 0, 1, 1) };
@@ -161,7 +161,7 @@
/* move to line offset of zero, and first non-whitespace char, end of line */
bind "0" { "movement" (first-char, 0, 1, 0) };
bind "<shift>asciicircum" { "movement" (first-nonspace-char, 0, 1, 0) };
- bind "dollar" { "movement" (last-char, 0, 0, 0) };
+ bind "dollar" { "movement" (last-char, 0, 1, 0) };
bind "bar" { "movement" (nth-char, 0, 1, 1) };
/* jump to match of brace/bracket/comment/etc */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]