diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-03-29 09:00:55 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-03-30 14:03:12 +0200 |
| commit | e2f4b5bd6e9d8cba940074e9959d6cebf496132a (patch) | |
| tree | aafa1de663101b34e7991c1930b2ae7cd93fdb74 /config.def.h | |
| parent | 5f8865e78977c9ca43c3016fa92b79349b2d47cd (diff) | |
| download | vis-e2f4b5bd6e9d8cba940074e9959d6cebf496132a.tar.gz vis-e2f4b5bd6e9d8cba940074e9959d6cebf496132a.tar.xz | |
vis: implement selection rotation
In visual mode + and - will rotate the selection count times to the
right or left respectively. If there exists a line containing multiple
selections then the rotation happens within each line. Otherwise if each
line contains at most one selection the rotation is performed among all
existing selections.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 0b91be8..67e4c73 100644 --- a/config.def.h +++ b/config.def.h @@ -280,8 +280,10 @@ static const KeyBinding bindings_visual[] = { { "o", ACTION(SELECTION_FLIP) }, { ">", ALIAS("<vis-operator-shift-right>gv") }, { "<", ALIAS("<vis-operator-shift-left>gv") }, - { "<Tab>" , ACTION(CURSORS_ALIGN_INDENT_LEFT) }, - { "<S-Tab>" , ACTION(CURSORS_ALIGN_INDENT_RIGHT) }, + { "<Tab>", ACTION(CURSORS_ALIGN_INDENT_LEFT) }, + { "<S-Tab>", ACTION(CURSORS_ALIGN_INDENT_RIGHT) }, + { "-", ACTION(SELECTIONS_ROTATE_LEFT) }, + { "+", ACTION(SELECTIONS_ROTATE_RIGHT) }, { 0 /* empty last element, array terminator */ }, }; |
