Vim Custom Shortcuts v1.1 Cheat Sheet

A Software › Vim cheat sheet in English by TaTooKa

Vim Custom Personal Shortcuts

7,471 views 1,932 downloads 12 Dec 2017 History
3.7 avg · 0 ratings

CtrlP / FZF

Ctrl+P
open file search (CtrlP)
Alt+P
open tag jump (Ag)
Ctrl+L
open text search (FZF +Ag)
Ctrl+F
open current word search (FZF +Ag)
↳ Enter
open result in current buffer
↳ Ctrl+T
open result in new tab
↳ Ctrl+O
go back to last position

Git mergetool

]c
go to next conflict chunk
[c
go to previous conflict chunk
:diffget RE|BA|LO
get the chunk from REMOTE|BASE|LOCAL buffer
(on a git merge conflict, run git mergetool; resolve any conflicts and then git commit)

Custom Commands

:Isort
sort python imports
(all or visual block)

NERDTree

Ctrl+N
toggle NERDTree
Alt+V
Find current file in NERDTree
↳ Enter
open in current buffer
↳ t
open in new tab
↳ s
open in vertical split
↳ m
open node menu

Tagbar

Ctrl+M
or Enter
(NORMAL mode)
toggle Tagbar
↳ Enter
go to function or var
↳ p
preview function or var
zM
close all folds

Tabs

Alt+J
go to previous tab
Alt+K
go to next tab
Ctrl+T
go to last tab
Ngt
go to #N tab

Badges

Nice Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.