Last Updated: February 25, 2016
·
455
· Chao Yang

vim tips

Some vim tips.

f"$" - find, move to the position of "$"
^    - move to the head of the current line.
$    - move to the end of the current line.
H    - move to the head of the current page.
M    - move to the middle of the current page.
L    - move to the buttom of the current page.
%    - move between '{' and '}'.
:tabnew - create new tab
set foldmethod=indent - set fold based on indent
set foldmethod=syntax - set fold based on syntax