Show Menu

VIM and Plugins Cheat Sheet by

Cheatsheat for Vim and Plugins that I can't remember. Pretty custom to me.
vim     personal

VIM

<­lea­der­>
\
<­l>
<le­ade­r>
<­CR>
Carriage Return
:help key-no­tat­ion
List all key notations

Gitgutter

]c
Next Change
[c
Previous Changwe
<­l>hs
Stage hunk
<­l>hs
Revert Hunk

patchr­eview

:Dif­fRe­view
Reviewing current changes in your workspace
:Dif­fReview git staged --no-color -U5
Reviewing staged git changes
 

python­-mode

<­l>b
Add breakpoint
<­C-c­>g
Open definition in split
<­C-c­>rr
Rope rename
<­C-c­>r1r
Rename module
<­C-c­>ra
Resolve missing import under cursor
<­C-c­>r1p
Convert module to package
<­C-c­>rm
Extract method from line
<­C-c­>rl
Extract variable from line
<­C-c­>ru
Find places in which function can be used and changes the code to call it instead.
<­C-c­>rv
Move method/fields

It happens when you perform move refact­oring on a method of a class. In this refact­oring, a method of a class is moved to the class of one of its attrib­utes. The old method will call the new method. If you want to change all of the occurr­ences of the old method to use the new method you can inline it afterw­ards.
<­C-c­>rs
Change function signature
:Pym­ode­Rop­eUndo
Undo last change on project
:Pym­ode­Rop­eRedo
Redo last change on project
Check g:pym­ode­_py­thon is correct.
 

Fugitive

<­C-R­<C-­G>
On the command line, recall the path to the current object
["­x]y­<C-­G>
Yank the commit SHA and path to the current object
 
Foll­owing maps are available in Git Objects
<­CR>
Jump to revision under cursor
o
Jump to revision under cursor in new split
S
Jump to revision under cursor in new vert split
O
Jump to revision under the cursor in new tab
-
Go to the tree containing the current tree or blob
~
Goto the current file in the [count]th first ancestor
p
Go to the current file in the [count]th parent
C
Go to the commit containing the current file
.
Start a : command line with the current revision prepop­ulated at the end of the line
a
Show the current tag, commit, or tree in an altern­ative format
 

Cscope

<­C-­\><q­uer­y>
Find
<­C-<­spa­ce>­><q­uer­y>
Find in horizontal split
<­C-<­spa­ce>­><C­-<s­pac­e>>­<qu­ery­>
Find in vertical split
 
Quer­ies
s
Find all references to token
g
Find global defini­tio­ns(s) of the token
c
Find all calls to the function name
t
Find all instances of the text
e
egrep search for word
f
Open the filename under cursor
i
Find files that include filename
d
Find functions called by function under cursor
All relative to cursor

Download the VIM and Plugins Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/cscutcher_vim-and-plugins.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

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

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          cVim Keyboard Shortcuts

          More Cheat Sheets by cscutcher

          Planetary Annihilation: Titans Keyboard Shortcuts