-
Notifications
You must be signed in to change notification settings - Fork 0
/
vim-cheatsheet.txt
43 lines (40 loc) · 1.08 KB
/
vim-cheatsheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
leader is comma (",")
<F1> Open cheatsheet
<F2> file explorer tree
<F3> Source vimrc
<F4> revision edits tree
<F5> Run neomake for linter
<space>f find files
<space>b fuzzy find buffers
<space>h turn off highlight
- repeat macro
,s swap assignment a=b => b=a
,p paste from clipboard
,y yank from clipboard
,s swap expressions between equals sign
,Ctrl-n :TestNearest
,s swap
zc close fold
ga start alignment
- repeat macro
cr[smcu-.] change word into different case
crs snake
crm mixed
crc camel
cru upper
cr- dash case
cr. dot case
:%Subvert - change text perserving case
:UndotreeToggle - show undo tree
:Tree - Open nerdtree
:Vimrc - Edit vimrc
:Nvimrc - Edit init.lua
:Spell - Turn on spell USA english check
:Nospell - Turn off spell check
:Delete - Delete current file
:Move - Move current file
:Rename - Rename current file
:SudoEdit - Edit current file as sudo
:Reference - open curated cheatsheet
:Pythonrc - open python ftplugin configuration file for vim
:ol - view last opened files