From e2f4b5bd6e9d8cba940074e9959d6cebf496132a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 29 Mar 2016 09:00:55 +0200 Subject: 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. --- config.def.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config.def.h') 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("gv") }, { "<", ALIAS("gv") }, - { "" , ACTION(CURSORS_ALIGN_INDENT_LEFT) }, - { "" , ACTION(CURSORS_ALIGN_INDENT_RIGHT) }, + { "", ACTION(CURSORS_ALIGN_INDENT_LEFT) }, + { "", ACTION(CURSORS_ALIGN_INDENT_RIGHT) }, + { "-", ACTION(SELECTIONS_ROTATE_LEFT) }, + { "+", ACTION(SELECTIONS_ROTATE_RIGHT) }, { 0 /* empty last element, array terminator */ }, }; -- cgit v1.2.3