- never ever leave vim, stay within vim all the time.
<CTRL>-Z
to suspend vim, execute shell command andfg
to foregrounding into vim again. This will keep your vim history/state intact. If required open additional terminals to do things. But repeat: never ever leave vim
- ctrlp
- easymotion (leader command single
,
) - cscope
- No fancy nerdtree, simple CTRLP
Command | Comment |
---|---|
` | start typing chars of filename and hit enter, really fast |
:e . |
open netrw and provides list to open files |
:e<TAB> |
same same but different |
Nerdtree specific:
Command | Comment |
---|---|
<CTRL>P |
open CTRL menu (subsequent commands are based on ctrlp) |
<ENTER> |
replace current buffer with new buffer |
<ctrl-v> |
split window vertically and load new buffer |
<ctrl-x> |
split window horizontal and load new buffer |
Command | Comment |
---|---|
,w |
easymotion forward |
,b |
easymotion forward |
f<char> |
jump to next occurance of in line, forward |
t<char> |
jump to next occurance of in line, next to it |
Command | Comment |
---|---|
<CTRL>O |
jump to the previous entry in jump list |
<CTRL>I |
jump to next entry in jump list |
:jumps |
display all available jump targets |
Command | Comment |
---|---|
y |
yank selected text |
yy |
yank line |
p |
paste yank buffer |
dd |
delete current line |
D |
cut till end |
Command | Comment |
---|---|
CTRL-Y |
scroll downwards |
CTRL-E |
scroll upwards |
Command | Comment |
---|---|
CTRL-] |
follow defintion |
CTRL-T |
backwards |
r2 -A -e io.cache=true <object>
- disass main:
pdf@main
- analyze all:
aa
- show sections:
iS
- list functions:
afl
- list imports:
ii
- list entrypoints:
ie
- seek to function:
s main
- add comment:
CC
- show basic block disassembly:
pdb
- show function disassembly:
pdf
- show function arguments:
afa
- show function variables:
afv
- rename current fucntion:
afn
- rename function variable:
afvn
- set function variable type:
afvt
- add/analyze function:
af
- enter visual mode:
V
- select function, variable, xref:
v
- quick command/seek:
_ <search string>
- show cursor:
c
- set function name:
d
- add comment:
;
- enter graph modes:
VV
- cycle types of graphs:
p
- seek to function:
g<identifier>
- undo seek:
u
- define new function at cursor:
df
- show comments:
'
- add comment:
/
- add comment (complex):
:CC!
- analyze functions:
af
- analyze stack:
ad@rsp
- search for opcode:
/a
- search for rop/jop/etc:
/R
- search for bytes:
/x
- get offset for the actual seek point address:
?p