aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-24 13:46:04 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-24 13:46:04 +0200
commit6703eb20d1fd5c05545f8f1360eef3020bb9d8b8 (patch)
tree6a3f74469a459cb2e59a3abb6f179102c012ef79 /config.def.h
parent6e5b0ab026093e39fd863ca605250d9558edce41 (diff)
downloadvis-6703eb20d1fd5c05545f8f1360eef3020bb9d8b8.tar.gz
vis-6703eb20d1fd5c05545f8f1360eef3020bb9d8b8.tar.xz
<num>gg should go to <num> line
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 3061aef..68550b3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -129,11 +129,11 @@ static KeyBinding vis_movements[] = {
{ { NONE('}') }, movement, { .i = MOVE_PARAGRAPH_NEXT } },
{ { NONE('(') }, movement, { .i = MOVE_SENTENCE_PREV } },
{ { NONE(')') }, movement, { .i = MOVE_SENTENCE_NEXT } },
- { { NONE('g'), NONE('g') }, movement, { .i = MOVE_FILE_BEGIN } },
+ { { NONE('g'), NONE('g') }, gotoline, { .i = -1 } },
{ { NONE('g'), NONE('0') }, movement, { .i = MOVE_SCREEN_LINE_BEGIN } },
{ { NONE('g'), NONE('m') }, movement, { .i = MOVE_SCREEN_LINE_MIDDLE} },
{ { NONE('g'), NONE('$') }, movement, { .i = MOVE_SCREEN_LINE_END } },
- { { NONE('G') }, movement, { .i = MOVE_LINE } },
+ { { NONE('G') }, gotoline, { .i = +1 } },
{ { NONE('|') }, movement, { .i = MOVE_COLUMN } },
{ { NONE('n') }, movement, { .i = MOVE_SEARCH_FORWARD } },
{ { NONE('N') }, movement, { .i = MOVE_SEARCH_BACKWARD } },