Multiple cursorsλ︎
Visual-Multi (VM) is a multiple selections/cursors plugin that uses modal editing and provide visual feedback when editing multiple lines simultaneously.
Mulitple cursors is generally useful when editing smilarly structured lines with diffferent content. Cursors are moved by column position or by using vim motions.
Changing continuous linesλ︎
Use visual select over multiple lines to edit them at the same time.
g m c creates a cursor on each line.
Make edits as required.
Esc or f d to close multiple cursors.
Search and Replaceλ︎
Select a text pattern to search for and use multiple cursors to add a cursor each match, then change each selected occurance concurrently.
Select the pattern with visual select
g m a on each matching text pattern in the buffer
c
to change the original text and type the new pattern. All cursors will update concurrently.
Esc or f d to close multiple cursors.
Referenceλ︎
:help g:VM_maps
for a reference of all mappings and instructions on how to change them