日期:2014-05-16  浏览次数:20873 次

求VIM配置文件
本人平时使用C和C++编程 想要份适合C和C++语法高亮显示的VIM配置



谢谢了!!!

------解决方案--------------------
这个vim配置,C/C++/Shell的语法高亮都有,适合于改配置文件,以及对代码小修小补,但做大规模开发还不够

一般我也不拿vim做开发

C/C++ code

" Begin /etc/vimrc

set nocompatible
set number
set autoindent
set smartindent
set smartcase
set showmatch
set backspace=2
set mouse=a
syntax on
if (&term == "iterm") || (&term == "putty")
  set background=dark
endif

" End /etc/vimrc

------解决方案--------------------
JScript code

  1 set fenc=utf-8
  2 syntax enable
  3 set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
  4 set nocompatible
  5 set confirm
  6 filetype on
  7 filetype plugin on
  8 filetype indent on
  9 syntax on
 10 highlight StatusLine guifg=SlateBlue guibg=Yellow
 11 highlight StatusLineNC guifg=Gray guibg=White
 12 set nobackup
 13 setlocal noswapfile
 14 set bufhidden=hide
 15 set wildmenu
 16 set ruler
 17 set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%)
 18 set backspace=2
 19 set report=0
 20 set noerrorbells
 21 set showmatch
 22 set matchtime=5
 23 set incsearch
 24 set formatoptions=tcrqn
 25 set smartindent
 26 set cindent
 27 set tabstop=4
 28 set softtabstop=4
 29 set shiftwidth=4
 30 set smarttab
 31 set number
 32 set nohlsearch
 33 
 34 let Tlist_Sort_Type = "name"
 35 let Tlist_Use_Right_Window = 1
 36 let Tlist_File_Fold_Auto_Close=1

------解决方案--------------------
我自己用的配置文件,楼主可以试试,绝对可以达到这个效果
http://download.csdn.net/detail/mymtom/4018361
------解决方案--------------------
探讨
我自己用的配置文件,楼主可以试试,绝对可以达到这个效果
http://download.csdn.net/detail/mymtom/4018361