Neovim
Install
Arch
See also ./spellcheck.md
for dictionary deps
Config
Default config locations:
~/.config/nvim
~/.local/share/nvim
~/.local/state/nvim
~/.cache/nvim
These can be changed by using the NVIM_APPNAME env variable. This obsoletes config managers like cheovim.
i.E. to start with a minimal/clean config:
NVIM_APPNAME=nvim_clean nvim
Lazyvim
See lazyvim.md
Usage
Getting help
Cheatsheet
Using cheatsheet.nvim:
Type <leader>?
(which means \
+ ?
) to navigate through cheatsheet, or
use :Cheatsheet
Custom Cheatsheet is at ~/.config/nvim/cheatsheet.txt
and can get edited
with :CheatsheetEdit
, and search with Telescope typing <leader>?custom
.
Neovim.md
Open with <F2>
Debug
:checkhealth provider
Debug / verbose startup:
nvim -V/tmp/nvim.log ...
VIM in general
Help
<F1>
or :help
Shortcuts
Show default shortcuts: :help index
Show custom shortcuts: :map
modeline
http://vim.wikia.com/wiki/Modeline_magic http://vimdoc.sourceforge.net/htmldoc/options.html#modeline
i.e. add to json file;
// vim:ts=4:sw=4:et
or in a config file:
# vim:filetype=sway:foldmethod=marker:foldlevel=0
(Re-)wrap existing text
Wrap Existing Text at 80 Characters in Vim:
Select text and use gq
to rewrap.