advanced vim

Why VIM?
-
21 years of continuous development
-
Over 4,500 plugins available to date

The contents
-
Modes
- Commands
-
Movement
-
Editing
-
Searching
- Windows
- Plugins
action
Open a source file in VIM
Modes
Normal
Default behavior, used for navigation and manipulation of text. Insert
Used for inserting new text. "Normal" mode commands are also available in "Insert" mode through the use of meta keys.Visual
Used for navigation and manipulation of text selections. Most "Normal" mode commands are available in "Visual" mode.Commands
Introducing the Colon
Open
:e <filename>Write
:w <filename>Quit
:q
Help
:hMovement
h => leftj => downk => upl => right
Movement
Document Level
Page Down
<ctrl>+fPage Up
<ctrl>+bJump to Top
ggJump to Bottom
GJump to Line
<line number>ggMovement
Screen Level
Jump to Top of Screen
H
Jump to Middle of Screen
M
Jump to Bottom of Screen
LMovement
Line Level
End of Word
eBeginning of Word
bEnd of Line
$Beginning of Line
0Movement
Mark
Undo Jump
``
Mark, Jump
m[a-zA-Z] => `[a-zA-Z]
Miscellaneous
Jump to Closing Character
%
Editing
Adding Data
Insert
i
Append
aAppend to Line
ANew Line
oEditing
Replacing Data
Replace Character Under Cursor
r
Replace Word
cwEditing
Deleting Data
Delete Character Under Cursor
xDelete Word Under Cursor
dwDelete Line
ddDelete From Cursor to End of File
dGEditing
Visual Blocks
Selecting Characters
v
Selecting Lines
VSelecting Columns
<ctrl>+vEditing Multiple Lines
ISearching
Find
Basic Search
/<query>REGEX Search
/<regex query>Search
Find and Replace
Replace First Instance
Replace First Instance
:s/<find>/<replace>Replace All Instances on Line
:s/<find>/<replace>/gReplace All Instances in File
:%s/<find>/<replace>/gWindows
Split Windows
Split Vertically
:vsSplit Horizontally
:spResize Split Window
:<vertical> resize <columns>Move to Split Window
<ctrl>+w <direction>plugins
- tComment
- autoclose
- syntastic
- emmet
- snipmate
- tabular
- fugitive
- CtrlP
- NerdTree
- matchit
- surround
- YankRing
- airline
- supertab
- easymotion
Advanced Vim
By xfyuan
Advanced Vim
- 836