nvim how-to
Table of Content
[[nvim]] and [[lazyvim]]
lazyvim default keymaps¶
https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
spell check¶
https://neovim.io/doc/user/spell.html
Spelling check is being done by default.
Run ]s
to find misspelled word, z=
to get the suggestions and select prompted key to select and replace from the suggestion, replace the same word appears in the current buffer by :spellr
, or zg
to mark the word as good one such as "Kubernetes".
action | key |
---|---|
Move to next misspelled word after the cursor | ]s |
Spell check search in a opposite direction than ]s |
[s |
Suggest correctly spelled words | z= |
Replace all for the latest replacement done by z= |
:spellr[epall] |
Mark the word as good one and record it in the dictionary | zg |
Undo the latest zg to remove it from the dictionary record |
zug |
comment out¶
action | key |
---|---|
Comment out the line | gcc |
In markdown file, the line will be commented out using html <!-- -->
.
lazyvim notification / noice¶
https://www.lazyvim.org/keymaps#noicenvim
action | key |
---|---|
Noice all | <leader>sna |
Noice history | <leader>snh |