Open rain1024 opened 10 years ago
<NERDTree> <Ctrlp> <surround> <emmet> (RU: Zen coding) <numbers>
:NERDTree
m a <folder_name> / y
m a <file_name> y
$ Bookmark
# show bookmark
$ B
# delete bookmark
Shift-D
:CtrlP
Ctrl-p
Type ("_" is the cursor position)
html:5_
Then type
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
_
</body>
</html>
1. Movement {Normal Mode}
Text:
h
j
k
l
Word:
e
w
3w
b
3b
iw
B
W
Line:
$
0
^
Sentence:
(
)
Paragraph:
}
{
Screen:
H
M
L
File:
G
1G
50G
Back to last move:
''
``Corresponding item:
%
Move the cursor to positions where there isn't any text [2]
2. Basic Edit
Put:
<p>
,<P>
Buffer
Working with many files
7. Splitting: windows and tabs
New tab
':tabe'
New window
':new filename.txt'
Move between two window:
C-H
,C-J
C-K
C-L
C-W h
,C-W j
C-W k
C-W l
Search and Replace
8. Command {Command Mode}
Put
Run system command
Repeat previous command
References