Visit this page to see the full command list from the official repository.
Here are some frequently used commands:
Command | Function |
---|---|
m | open the menu |
o or Enter |
open files, directories, bookmarks |
O |
Recursivly open the selected directory |
s | open a file in a vertical split window |
i | open a file in a horizontal split window |
t | open a file in new tab |
gt | jump between tabs |
x | close the current node parent (unfold current folder) |
X | Recursivly close the current node parent (unfold folders) |
R | refresh |
cd | change tree root to the selected node/directory |
CD | change tree root to CWD |
I | toggle whether hidden files displayed |
f | toggle whether file filters are used |
F | toggle whether files are displayed |
B | toggle whether bookmark table displayed |
q | QUIT nerdtree window |
A | zoom in/out nerdtree window |
'nn where ' is the <leader> in my vim conf |
open/close nerdtree window |
Visit this page to see the full command list from the official repository.
Run :help ctrlp-mappings
or submit ?
in CtrlP for more mapping help.
Here are some frequently used commands:
Command | Function |
---|---|
F5 | purge the cache for the current directory to get new files, remove deleted files and apply new ignore options |
<c-j> |
move cursor down in Ctlp window |
<c-k> |
move cursor up in Ctlp window |
<c-t> |
open selected file in new tab |
<c-v> |
open selected file in new vertical split window |
<c-x> |
open selected file in new horizontal split window |
<c-y> |
create a new file and its parent directories |
:<line num> |
open file and jump to specified line, e.g. type :15 then Enter , the file will be opened and cursor will be at 15th line |
:Ta
+ TAB to show all commands starts with Ta
.
Command | Function |
---|---|
:Tagbar | toggle of tagbar |
:Py
+ TAB to show all commands starts with Py
.
Command | Function |
---|---|
:PyLint | run pylint |
<leader>j
: List most recently used files
6. Surround
Help to memorize Surround commands:
Some examples. An asterisk (*) is used to denote the cursor position.
Select content then strike S
: add surround, e.g. veS"
surround selected word with ""
v
enter visual modee
to the end of the wordS
add surround"
surround char)
Select content could use visual mode, or not.
Text | Command | Result |
---|---|---|
if *x>3 { | ysW( |
if ( x>3 ) { |
my $str = *whee!; | vllllS' |
my $str = 'whee!'; |
ds
: delete surround, e.g. ds"
deletes ""
.
Text | Command | Result |
---|---|---|
"Hello *world!" | ds" |
Hello world! |
cs
: change surround, e.g. cs"'
changes ""
to ''
.
Text | Command | Result |
---|---|---|
[123+4*56]/2 | cs]) |
(123+456)/2 |
[123+4*56]/2 | cs]( |
( 123+456 )/2 |
"Look ma, I'm *HTML!" | cs"<q> |
Look ma, I'm HTML! |
"Hello *world!" | cs"' |
'Hello world!' |
"Hello *world!" | cs"<q> |
Hello world! |
(123+4*56)/2 | cs)] |
[123+456]/2 |
(123+4*56)/2 | cs)[ |
[ 123+456 ]/2 |
Yo!* |
cst<p> |
Yo! |
Hello w*orld! | ysiw) |
Hello (world)! |