Helix: Vertical Selection and Edit
One of the workflows I used in vi/m over last 2 decades is : vertical selection and edit
So much so that it is part of my muscle memory and I needed to learn the equivalent in helix.
After some searching, I found it. Here are the steps:
- Go to the column you want to select. Press v to enter select mode.
- Select the column and to go down and up in the column selection use Shift-C or Alt-Shift-C
- You can repeat the Shift-c command using the numeric operator if
needed, like
10-Shift-Cto select the column 10 rows vertically. - Now you can perform any action on the selection e.g.
- Go to
insertmode and add*before each column. - Or
dto delete the selected letter from all the rows (innormal) mode.
- Go to
- You can come out of this (multi-select?) mode via
,innormalmode (If you are ininsertmode, finish editing and come back tonormalmode first, viaEsc)