Vim's work-characteristic customization
Extended mode: Current VIM process is valid
Change profile: Permanently valid
Global:/ETC/VIMRC
Personal: ~/.VIMRC (can be created on its own without this file)
1, line number
Set Nu:set number Displays line numbers
Set Nonu:set nonumber Cancel display
2, Auto Indent
Set AI: Enable
Set Noai: Disable
3, search highlighting
Set Hlsearch: Enabled
Set Nohlsearch: Disable
4, syntax highlighting
Syntax on: Enable
Syntax off: Disabled
5, ignoring the case of characters
Set IC: Ignore
Set Noic: Do not ignore
6, pairs of parentheses match
Set Sm:set Showmatch Enabled
Set Nosm:set noshowmatch Disabled
7, file format
Set Fileformat=unix file format to UNIX format
Set Fileformat=dos file format to DOS format
8, set text width (only for vim)
Default width of 80 characters
: Set textwidth=65 Sets the left width
: Set Wrapmargin=15 to the right width
9, Set tab width
Set TS (tabstop) =#
This article is from the "Love Firewall" blog, be sure to keep this source http://183530300.blog.51cto.com/894387/1836133
Vim's work-characteristic customization