diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-04-04 09:22:26 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-04-04 09:31:49 +0200 |
| commit | ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03 (patch) | |
| tree | 3ed66754cf50cc2c38a93179f61e397f67778bb1 /vis-motions.c | |
| parent | dd730eb1feb46e9688350b0ff401694653f90554 (diff) | |
| download | vis-ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03.tar.gz vis-ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03.tar.xz | |
vis: add motions to move by codepoints
Some people might prefer this for <Backspace> behavior. Except for that
and debugging purposes using `ga` and `g8` it is not yet that useful.
Diffstat (limited to 'vis-motions.c')
| -rw-r--r-- | vis-motions.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vis-motions.c b/vis-motions.c index 1ceb958..0166117 100644 --- a/vis-motions.c +++ b/vis-motions.c @@ -491,6 +491,14 @@ const Movement vis_motions[] = { .txt = text_line_char_next, .type = CHARWISE, }, + [VIS_MOVE_CODEPOINT_PREV] = { + .txt = text_codepoint_prev, + .type = CHARWISE, + }, + [VIS_MOVE_CODEPOINT_NEXT] = { + .txt = text_codepoint_next, + .type = CHARWISE, + }, [VIS_MOVE_WORD_NEXT] = { .vis = word_next, .type = CHARWISE|IDEMPOTENT, |
