Show Menu
Cheatography

VIM and Plugins Cheat Sheet by

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

VIM

<le­ade­r>
\
<l>
<le­ade­r>
<CR>
Carriage Return
:help key-no­tation
List all key notations

Gitgutter

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

patchr­eview

:DiffR­eview
Reviewing current changes in your workspace
:DiffR­eview 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
:Pymod­eRo­peUndo
Undo last change on project
:Pymod­eRo­peRedo
Redo last change on project
Check
g:pymo­de_­python
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
 
Following 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-­\><­que­ry>
Find
<C-­<sp­ace­>><­que­ry>
Find in horizontal split
<C-­<sp­ace­>><­C-<­spa­ce>­><q­uer­y>
Find in vertical split
 
Queries
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
   
 

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
          Personal VIM Cheat Sheet

          More Cheat Sheets by cscutcher

          Planetary Annihilation: Titans Keyboard Shortcuts
          Dwarf Fortress v50 - Default Hotkeys (Premium) Keyboard Shortcuts