Helix
Helix is modal text editor written in Rust.
It is similar to neo/vi/m except that the editing is inspired by Kakoune editor
To paraphrase the documentation:
Helix's editing model is strongly inspired from vim and kakoune,
and a notable difference from vim (and the most striking similarity to kakoune)
is that Helix follows the selection β action model. This means that the whatever
you are going to act on (a word, a paragraph, a line, etc) is selected first
and the action itself (delete, change, yank, etc) comes second.
If you are coming from neo/vi/m, this takes getting used to.
Retraining the muscle memory is not easy.
But main reason I'm trying to use more Helix (This entry is created in helix editor)
is because the editor "just works", it comes with built-in LSP, built-in themes, and a whole lot more.
Useful Keyboard shortcuts (for me π)
- Windows options are available with
Ctrl-w
s
for horizontal bottom splitv
for vertical splitq
for close window
- Global search inside workspace folder :
SPC /
- Equivalent of
Shift D
in vim :- Select till end of the line
t<ret>
t
meanstill
<ret>
inEnter
keystroke, which matches newline, so end of the line
- now
d
for delete.
- Select till end of the line
- Find and replace (equivalent of
%s/<old>/<new>/g
)- Select entire file with
%
s
to search the stringc
to replace it with new string
- Select entire file with
- Navigating the source code
gd
: Go to Definitiongp
: Go to Previous buffer (This is equivalent ofCtrl-O
to go back up the stack)
How to create a new file from within Helix ?
:open (or just :o)
This gives you auto-completion while writing the path.
Refer to this original thread on reddit