-
Notifications
You must be signed in to change notification settings - Fork 1
Neovim
Tim Bedard edited this page May 14, 2019
·
5 revisions
- The config is written to be mostly compatible with both Vim and Neovim.
-
<Leader>is<Space>. - The system clipboard is the default clipboard.
| Function | Shortcut |
|---|---|
| Exit insert mode | jj |
| Exit terminal mode | kk |
| Nav in insert mode |
<C-h>*/<C-j>/<C-k>/<C-l>
|
| Command mode | ; |
| Repeat last find, 'til, etc | ;; |
| Nav begin/end of line |
H/L
|
| Next/prev buffer |
K/J
|
| Nav windows |
<C-h>/<C-j>/<C-k>/<C-l>
|
| Next/prev tabs |
<C-Tab>/<M-Tab>
|
| vim-easymotion | <Leader>f{char} |
| Jump between hunks(changes) |
]c/[c
|
* Doesn't work in most terminals.
| Function | Shortcut |
|---|---|
| Redo | U |
| Insert single char | <Leader>i |
| Append single char | <Leader>a |
| Comment out line | gcc |
| Comment out selection | gc |
| Comment out motion | gc{motion} |
| Surround in char/tag |
ys{motion}{char/tag}
|
| Surround in char/tag and newlines |
yS{motion}{char/tag}
|
| Surround selection in char/tag |
S{char/tag}
|
| Surround line in char/tag |
yss{char/tag}
|
| Surround line in char/tag and newlines |
ySS{char/tag}
|
| Change surrounding char/tag |
cs{char*}{new char/tag}
|
| Remove surrounding char/tag | ds{char*} |
| Stage a hunk | <Leader>hs |
| Undo staging a hunk | <Leader>hu |
| Operate on a hunk |
{#}{op}ic/{#}{op}ac
|
| Open default Vimwiki | <Leader>ww |
| YAPF | <Leader>y |
* The following aliases can also be used:
| Char | Alias |
|---|---|
| ( ) | b |
| { } | B |
| [ ] | r |
| < > | a |
| leading space | s |
<tag></tag> |
t |
| Function | Shortcut |
|---|---|
| Fuzzy search (fzf.vim)) | <C-p> |
| Tagbar | <Leader>t |
| Reveal character metadata | ga |
| Function | Command |
|---|---|
| Reload init.vm | :vrr |
| Edit init.vim | :vr |
| Edit plugins.vim | :vp |
| Trim white space | :trim |
| Unix move, delete, etc |
:Move, :Delete, etc |
| Git command | :Git [args] |
| Git command | :G{git command} [args] |
| Write and stage file | :Gwrite |
| View blame | :Gblame |
| View file on GitHub | :Gbrowse |
| Open commit browser | :GV |
| Install plugins | :PlugInstall |
| Update plugins | :PlugUpdate |
| Clean plugins | :PlugClean |
| Check plugin status | :PlugStatus |
| Update remote plugins | :UpdateRemotePlugins |
| Upgrade vim-plug | :PlugUpgrade |
| vim-instant-markdown | :InstantMarkdownPreview |
| Toggle Goyo | :Goyo |
| Turn on (or off) Limelight |
:Limelight(!) |