First, the basic configuration
1 "set character encoding to prevent Chinese garbled and other problems2Set fileencoding=utf-83Set fileencodings=utf-8, Gb2312,gb18030,latin14Set termencoding=utf-85Set encoding=utf-86 7 "Syntax Highlighting8 Syntax on9 "Dark BackgroundTen Color Evening One "Detecting file Types A filetype on - "load the corresponding plug-in according to the file type - filetype plugin on the "Show Line Numbers - Set number - "set various indentation -Set tabstop=4 +Set softtabstop=4 -Set shiftwidth=4 + Set Autoindent A Set Smartindent at Set Cindent - "tab conversion to spaces - Set Expandtab - - "show longest column boundaries -Setcc= - in - "Highlight Current Line toSet Cursorline
Second, plug-in
1. Doxygen
Address: http://www.vim.org/scripts/script.php?script_id=987
Download the Doxygentoolkit.vim, copy it to the ~/.vim/plugin directory, and configure it in ~/.VIMRC, such as configuring the default
" Doxygenlet g:doxygentoolkit_authorname="zzq"
When used, in command mode, enter: Dox can add doxygen comments to functions, input: Doxauthor can add comments to the file, see Home Help for details.
Third, the use of skills
Vim Configuration and use