Key is ,
:help {keyword}
- Bring up help for keyword:save {file}
- save the current file as another filename:close
- Close the current pane:terminal
- Open a terminal window<Esc>
- Return to Normal mode:x
- save and quit:w
- save:q
- quit:q!
- quit don't save:wqa
- Save and quit cloing all tabs
h (left)
,j (down)
,k (up)
,l (right)
- Move around the screengg
- Move to top of bufferG
- Move to bottom of fileH
- Top of screenM
- Middle of screenL
- Bottom of the screenw
- jump forward to start of worde
- jump forward to end of wordb
- jump backwards to start of word%
- Jump forward to matching paren or brace0
- Start of line$
- End of line^
- First non-blank character of linef{char}
- Move to the next occurrence of charecterF{char}
- Move ot the previous occurrence of charecter{
,}
- Move around paragraph blocks (works in code too)CTRL-e
- Move screen down one line without moving cursorCTRL-y
- Move screen up one line without moving cursorCTRL-b
- Move back one full screenCTRL-f
- Move forward one full screenCTRL-d
- Move forward 1/2 screenCTRL-u
- Move back one full screen
i
- Enter insert mode before cursorI
- Enter insert mode at the start of the linea
- Enter insert mode after cursorA
- Enter insert mode at the end of the lineo
- Append a line below current lineO
- Append a line above current lineea
- Enter insert mode at the end of the wordCTRL-r {register}
- Insert the contents ofregister
CTRL-x CTRL-k
- Look up dictionary for matches
Browsing matches:
<Tab>
,CTRL-n
- Search forward for next matching keyword<S-Tab>
,CTRL-p
- Search backwards for next matching keyword
CTRL-x CTRL-t
- Look up thesaurus for matches
Browsing matches:
<Tab>
,CTRL-n
- Search forward for next matching keyword<S-Tab>
,CTRL-p
- Search backwards for next matching keyword
]s
- Move to next misspelled word[s
- Move to previous misspelled word]S
- Move to next bad word[S
- Move to previous bad wordzg
- Add word under the cursor as a good word to the firstspellfile
[index]zg
- Add word under the cursor as a good word to thespellfile
with givenindex
(starting from1
)zG
- Add word under the cursor as a good word to the internal word listzw
- Mark word under the cursor as a wrong (bad) wordzW
- Mark word under the cursor as a wrong (bad) word to the internal word listzug
- Undo adding word as a good wordzuG
- Undo adding word as a good word in the internal word listzuw
- Undo marking word as a wrong (bad) wordzuW
- Undo marking word as a wrong (bad) word in the internal word listz=
- Suggest correctly spelled words for the word under the cursor
r
- Replace single charecterJ
- Join line below to current oneg~
- Switch case up to motiongu
- Lower case up to motiongU
- Upper case up to motioncc
- Replace entire lineC
orc$
- Replace to end of lineciw
- Change entire wordcw
- Replace to end of wordu
- UndoU
- Redo.
- Repeat last command
v
- Visual modeV
- Start linewise visual mode (select lines)o
- Move to other end of marked areaCTRL-v
- Visual Block modeCTRL-O
- Other corner of blockaw
- Mark a word with whitespaceiw
- Mark a word without whitespaceab
- Mark block with ()aB
- Mark block with {}ib
- Mark inner block with ()iB
- mark inner block with {}at
- Mark tags with <>
>
- Shift text right<
- Shift text lefty
- Yank marked textd
- Delete marked text~
- Switch caseu
- Change case to lowercaseU
- Change case to uppercase
:reg
- Show register content"xy
- Yank into register x"xp
- Paste contents of register x"+y
- Yank into system clipboard"+p
- Paste from system clipboard
:marks
- Lists all marksma
- Set position of mark a`a
- Jump back to a`.
- Go to position when last editing the file``
- Go to position before last jump:ju
- List of jumpsCTRL-i
- Newer position in jump listCTRL-o
- Older position in jump list:changes
- List changesg,
- Go to newer changeg;
- Go to older change
qa
- Record macro aq
- stop recording macro@a
- Run macro a@@
- rerun last macro
yy
- yank lineyw
- yank wordy$
- yank to end of linep
- Paste clipboard after cursorP
- Paste clipboard before cursordd
- delete linedw
- Delete word (from current cursor to next start of word)d$
- Delete till end of linex
- delete character
<<
- Move line left>>
- Move line right>%
- Indent block (when on brace or paren)=%
- Re-indent block
/pattern
- Search for pattern?pattern
- Search backwards for patternn
- Repeat search in same directionN
- Repeat search in opposite direction:%s/old/new/g
- Replace all old with new throughout the file:%s/old/new/gc
- Replace all old with new throughout the file with confirmations:nohlsearch
- Remove highlighting of search matches:vimgrep /pattern/ **/*
- Search for pattern in all files:cn
- next match:cp
- prev match:cope
- List of all matches found:ccl
- Close list of all matches
:tabnew {file}
- Open file in new tabCTRL-w T
- Move current split window into its own tabgt
- Go to next tabgT
- Go to prev tab#gt
- Go to tab number:tabclose
- Close current tab:tabonly
- Close other tabs but this one
:e {file}
- Edit file in a new buffer:bn
- Next buffer:bp
- Prev buffer:bd
- Close buffer:ls
- List open buffers
:sp {file}
- Open file in new buffer and split:vs {file}
- Open file in new buffer and split (verticle):tab ba
- Open all buffers as tabsCTRL-w s
- split windowCTRL-w v
- split window verticleCTRL-w w
- switch windowCTRL-w q
- Quit windowCTRL-w x
- Exchange window with next oneCTRL-w =
- Make all windows equal height and widthCTRL-w h
- Move to left windowCTRL-w l
- Move to right windowCTRL-w j
- Move to below windowCTRL-w k
- Move to above window
<Leader> ss
- Display dashboard
<Leader> fn
- Toggle file treea
- Add new file (or folder if you leave a / at end)r
- Rename filed
- Delete file or folderD
- Trash file or foldery
- Copy file name to system clipboardY
- Copy relative path to system clipboardgy
- Copy absolute path to system clipboardx
- Cut filec
- Copy filep
- Paste file from clipboard-
- Navigate to the parent directory of current fileCTRL-]
- Change into directoryCTRL-v
- Open in vert splitCTRL-x
- Open in horizontal splitCTRL-t
- Open in new tabtab
- Open file but stay in tree (preview)s
- Open file or folder in system's default applicationR
- Refresh treeI
- Toggle hidden folders visibilityH
- Toggle dot files visibilityW
- Collapse whole treeS
- Prompt path to expand.
- Vim command modeCTRL-k
- Show file infos
<Leader> fb
- List buffers<Leader> ff
- Find file<Leader> fg
- Live grep<Leader> fh
- Help tags<Leader> fr
- Recent files
<F2>
- Rename<Leader> R
- Rename<Leader> r
- References<Leader> D
- Go to definition<Leader> I
- Go to implimentation<Leader> e
- Show document diag<Leader> E
- Show workspace diag<Leader> f
- Format buffer<Leader> k
- Signature help<Leader> K
- Hover text<Leader> a
- Do code action
<F5>
- Run<F10>
- Step over<F11>
- Step into<F12>
- Step out<Leader> b
- Set break point<F9>
- Open debug repl<Leader> d
- All dap commands<Leader> B
- List break points<Leader> dv
- List variables<Leader> df
- List frames
<Leader> t
- Run whole test suite<Leader> tn
<Leader> ~
- Open new floating terminal<Leader> ~j
- next floating terminal<Leader> ~k
- prev floating terminal<Esc>
- Close terminal
<Leader> gs
- Open magit fullscreen<CR>
- Expand hunksR
- Refresh magit bufferq
- Quit magit bufferS
- Stage or unstage hunkF
- Stage or unstage the whole fileDDD
- Discard changes to hunkL
- Stage the line under cursorE
- Edit file that is selectedCA
- Set commit mode to amendCU
- Go back to stage modeI
- Add file under cursor to.gitignore
CC
- Commit changes or move to commit mode.
? How to do snippets