VIM 用法
"========================================================
" Install the vim and Gvim
"========================================================
sudo apt-get purge vim vim-common vim-doc vim-gnome vim-gui-common vim-runtime
sudo apt-get install vim vim-common vim-doc vim-gnome vim-gui-common vim-runtime
"========================================================
" Install the awesome version from:https://github.com/amix/vimrc
"========================================================
Install:
git clone git://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
Update:
cd ~/.vim_runtime
git pull --rebase
Create a personal C language highlight rull file:~/.vim/syntax/c.vim
"========================================================
" Highlight All Function
"========================================================
syn match cFunctions display "\<[a-zA-Z_][a-zA-Z_0-9]*\>[^()]*)("me=e-2
syn match cFunctions display "\<[a-zA-Z_][a-zA-Z_0-9]*\>\s*("me=e-1
hi cFunctions gui=none guifg=pink cterm=none ctermfg=darkred
Create a personal vimrc file:~/.vim_runtime/my_configs.vim
"========================================================
" Display line number and set start-up window size
"========================================================
set nu
set lines=55
set columns=125
"========================================================
" Chinese characters support
"========================================================
set fileencodings=utf-8,gb18030