Vim under the Mac configuration file in
/usr/share/vim/vimrc
Your own configuration file in
If not. VIMRC need to create a. VIMRC
The configuration I set is
Set Nocompatible "Turn off VI compatibility mode syntax on"automatic syntax highlighting ColorScheme darkblue"Desert Molokai Set color scheme set number"Show line number set Cursorline"highlight current row set ruler"Open status bar ruler set Shiftwidth=4 "set << and >> the width of the command when moving is 4set softtabstop=4"Allows you to delete 4 at a time by pressing the backspace bar.a space set TabStop=4 "set tab length to 4set nobackup"do not back up set Autochdir when overwriting files"automatically switches the current directory to the directory where the current file is located filetype plugin indent on"Open Plug-in set backupcopy=yes "set the behavior of the backup to overwrite set ignorecase smartcase"ignores case when searching, but remains case-sensitive when there is one or more uppercase letters set Nowrapscan"prevents re-searching of set incsearch when searching to both ends of a file"search results are displayed when you enter a search result set Hlsearch"highlight the found text set noerrorbells when searching"Turn off error message ring set Novisualbell"Turn off use visual bells instead of call set t_vb="Terminal code for blank error ringtone"Set Showmatch"when inserting parentheses, briefly jump to matching corresponding parentheses"Set matchtime=2"briefly jump to the time of matching parentheses set magic"Set magic set hidden"allows the buffer to be toggled when there are unsaved modifications, where the change is held by Vim to save the set guioptions-=t "hides the toolbar set guioptions-=m"Hide Menu bar set Smartindent"Use Smart Auto indent set Backspace=indent,eol,start when new row is turned on"do not set in insert state cannot use BACKSPACE and delete keys to remove carriage return set Cmdheight=1 "set the line number of the command line to 1set laststatus=2"Displays the status bar (the default is 1,Unable to display status bar) set Statusline=\%<%f[%1*%m%*%n%r%h]%=\%y\%0 (%{&fileformat}\%{&encoding}\%c:%l/%l%)\ "set the information displayed in the status line set Foldenable"start collapse set Foldmethod=syntax "set syntax collapse set foldcolumn=0"sets the width of the collapsed area setlocal foldlevel=1 "set the number of collapsed layers to"Set Foldclose=all"set to auto close collapse"Nnoremap <space> @= (foldclosed (Line (')) < 0)? ' Zc ': ' zo ') <CR> "use SPACEBAR to switch folding
The Bolg of the reference configuration is: http://blog.csdn.net/waiting7436/article/details/37658945
Mac Yosemite 10.10 Editing the configuration of the Mac