helix
Tutor
The tutor, aka Tutorial, is great to learn how to use Helix.
Go thought it once at least. Don't hesitate to go back to it if you forget how keybindings work.
To open the tutor, run :
hx --tutor
# or, if you don't have the alias hx = helix
helix --tutor
Open file as sudo
Instead of running :
sudo helix myfile.conf
use sudoedit
:
sudoedit myfile.conf
This will use your $EDITOR, open a temporary file in /tmp
and then save it to the correct location.
Don't forget to export the EDITOR variable in your .bashrc
or .zshrc
.
echo 'export EDITOR=helix' > ~/.bashrc
Reference
Terminal view
Seems to be in works. For now, it is recommended to run programms or builds in a seperate terminal, a terminal multiplexer or a terminal (like kitty) that supports spliting.
References
Write without formating
No current straightforward way to do this. But:
I don't think it's necessary to add commands for this since there's a workaround: you can
:set auto-format false
,:write
, and then:set auto-format true
when you want auto-formatting again.
This can then be bound to a key. Apparently there is a way to bind a sequence of commands to one key.
- test this sequence thing.
Sources
Syntax Highlighting, LSP, Formaters & Linters
GO TO my lsp configuration wiki page.
Yank a diagnostic
:yank-diagnostic