VIM (Wikipedia map) Vim is a fairly powerful command-line editor that originates from UNIX platforms, but it's not a good thing that Mac OS X does not have a lot of Linux distributions on top of Vim's awesome horse code highlighting AH, automatic indentation ah god horse. (Translator Note: The Linux distribution can usually be changed by editing the/ETC/VIMRC file to change the global vim settings or personalized for a user's ~/.VIMRC) in order to compensate for this shortcoming, please do as follows: Open terminal, Enter the following command:
Cd/usr/share/vimsudo Vim VIMRC
After two lines of command, VIM will appear in the set backspace=2 this line (VIM operation does not repeat, want to make this modification will certainly make VIM) as follows configuration
Set AI "Auto indentingset history=100 " keep lines of Historyset ruler "show the cursor positionsyntax o n "syntax highlightingset hlsearch " highlight the last searched Termfiletype plugin on "Use the file type P Luginsset number
How to turn on vim syntax highlighting and displaying line numbers in Mac OS X