Spot an error? Know how to make this page better? I appreciate pull requests.
nvim
Notes for neovim (which should mostly work in vim)
Commonly Used Commands
I use neovim
daily, but most of these commands should work in vanilla vim
too.
Diff Operations
- Get chunck from other buffer (diff obtain):
do
- Move chunk to other buffer (diff put):
dp
- Get range from other buffer:
diffg[et]
- Move range to other buffer:
diffou[t]
Spelling
- turn spell check on:
:set spell
- Move to next/last word: ]s / [s
- Add word to dictionary: zg
- Show suggestions: z=
Text Insertion
When pasting code use :set paste
to preserve indenting of pasted code.
Text Wrapping
Wrap code to textwidth
: gq
Plugins
- Update / Install plugins:
:PlugUpdate