[gnome-builder/wip/libide] libide: add note about <shift>j difference
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add note about <shift>j difference
- Date: Wed, 11 Mar 2015 22:07:52 +0000 (UTC)
commit 59c442ca14177d628985fb0d4466349abed0f33e
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 11 15:07:34 2015 -0700
libide: add note about <shift>j difference
both 1J and 2J are the same thing in Vim, which is rather difficult to
emulate without adding another signal to subtract 1 from count.
data/keybindings/vim.css | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 901e13f..eecc93b 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -312,10 +312,12 @@
bind "less" { "set-mode" ("vim-normal-indent", transient) };
/* join selected lines */
- bind "<shift>j" { "movement" (first-char, 0, 1, 0)
- "movement" (next-line, 1, 1, 1)
+ /* todo: this actually grabs one more line than vim does when prefixed with
+ * a count. 1J and 2J are both the same thing.
+ */
+ bind "<shift>j" { "movement" (first-char, 0, 0, 0)
+ "movement" (next-line, 1, 0, 1)
"join-lines" ()
- "movement" (last-char, 0, 0, 0)
"clear-count" () };
/* change number */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]