Regex find and replace
  •  1 min read

Replace with multiple cursors

Search and replacing in vim is usually done using regular expressions with s/pattern/replacement. Helix is a bit different in that it leverages multiple cursors for search replace.

In evil or vim if you wanted to put a comma at the end of line you could use

:% s/$/,/

In Helix you use multiple cursors and simply edit the document:

  1. Select the whole document with %
  2. Press s to search
  3. Search for end of lines $
  4. i to enter insert mode
  5. , to add the comma