Show Menu
Cheatography

PluginVim Cheat Sheet by

CheatSheet about my plugin installation

vim-fu­gitive

Plugin
Git
Shortcut
Explai­nation
:Gstatus
git status
<le­ade­r>gs
Open a new buffer with git output
:Gcmd
git cmd
NOPE
Replace cmd by a git command. It does the same thing (opening buffer when needed)

xmledit

Command
Explan­ation
\d
Delete surrou­nding tag
\x
Add surrou­nding tag
\c
Add comment
\u
Remove comment

nerdco­mmenter

Command
Info
<le­ade­r>cc
comment selection
<le­ade­r>cn
comment selection nesting (add commentary even if the line is comment)
<le­ade­r>cs
comment sexily
<le­ade­r>cy
as cc, but yank before
<le­ade­r>c$
comment current line
<le­ade­r>cA
comment append

c_snippet

def
#if
inc
Inc
mark
once
en
st
un
td
for
do
wh
if
elif
else
fprintf
printf
main
vmain

cpp_sn­ippet

(SEE C SNIPPETS)
beginend
cl
ns
tp
 

vim-su­rround

Plugin
Shortcut
Delete surround
ds<ta­rge­t>
Change surround
cs<ta­rge­t><new>
New surround
ys<vi­m_m­ove><ne­w>
Surround current character
yS<ne­w>
Surround current line
ySS*<n­ew>
*A shortcut t is given for any tag for <ta­rge­t> and <ne­w>.
Example :
dst


* <ne­w>:
- opening : surround with space
- closing : surround without

nerdtree

Command on node
Explan­ation
o
open files/­dir­ect­ories
go
same but leave cursor in NERDTree
t
open in new tab
gt
same but stay in NERDTree
i
split
gi
same but stay in NERDTree
s
vsplit
gs
same but stay in NERDTree
x
close the current node parent
X
close recurs­ively
P
jump to root node
p
jump to currents node parent

vimshell

Shortcut
Command
<le­ade­r>vsn
:VimShell -toggle -split
<le­ade­r>vsi
:VimSh­ell­Int­era­ctive
<le­ade­r>vss
:VimSh­ell­Sen­dString

easymotion

shortcut
details
<le­ade­r>fc
find the character c to the right
<le­ade­r>Fc
to the left
<le­ade­r>tc
before the character c to the right
<le­ade­r>Tc
to the left
<le­ade­r>w
beg of word forward
<le­ade­r>W
beg of WORD forward
<le­ade­r>b
beg of word backward
<le­ade­r>B
beg of WORD backward
<le­ade­r>e
end of word
<le­ade­r>E
end of WORD
<le­ade­r>ge
end of word backward
<le­ade­r>gE
end of WORD backward
<le­ade­r>j
line downward
<le­ade­r>k
line upward
<le­ade­r>n
jump to latest / or ? forward
<le­ade­r>N
jump to latest / or ? backward
<le­ade­r>s
Find(s­earch) {char} f&b
   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          vim.spf13 Cheat Sheet
          vim tpope/vim-surround Cheat Sheet
          Vim - Surround Cheat Sheet