Thursday, May 7, 2009
Posted in
Linux
|
Indent
- VISUAL mode, there're 2 kinds of visual mode, stated as follow:
- -- VISUAL BLOCK MODE -- (Selection by block): Ctrl + v
- -- VISUAL LINE MODE -- (Selection by line): Shift + v
- Move your cursor, select(highlight) the blocks/lines you want to indent
- Commands for indent:
- Increase indent: Shift + .
- Decrease indent: Shift + ,
-
Formatting
- Enter COMMAND mode (press ESC in insert mode)
- Format the whole document:gg=G
- Format from line m to n:mG=nG
-
0 意見:
Post a Comment