我的vim配置文件

syntax enable
syntax on
set nocompatible        " Vim settings, not Vi settings.  must be first
set autoindent          " Auto align when insert new line, for instance, when using o or O to insert new line.

 set ruler               " Show ruler at the bottom-right of vim window
 set showcmd
 set backspace=indent,eol,start          " Enable delete for backspace under insert mode"
 colorscheme darkblue
 set number              " Show line number

 if &term =~ "xterm"
   if has("terminfo")
     set t_Co=8
     set t_Sf=^[[3%p1%dm
     set t_Sb=^[[4%p1%dm
   else
     set t_Co=8
     set t_Sf=^[[3%dm
     set t_Sb=^[[4%dm
   endif
 endif

"let g:neocomplcache_enable_at_startup = 1
set cursorline

set cursorcolumn

"foldmethod=marker

colo zellner
set guifont=Courier_New:h11:cANSI nobackup tabstop=4 shiftwidth=4 foldmethod=marker
"au BufRead * simalt ~x
"set langmenu=zh_CN.utf-8
"source $VIMRUNTIME/delmenu.vim
"source $VIMRUNTIME/menu.vim
"set guifont=DejaVu\ Sans\ Mono:h12
"source $VIMRUNTIME/../_vimrc
"set encoding=utf-8
"set fileencodings=utf-8,chinese,latin-1
"if has("win32")
"set fileencoding=chinese
"else
"set fileencoding=utf-8
"endif
"language messages zh_CN.utf-8
"set helplang=cn
"set iskeyword+=

colo evening
hi CursorLine   cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white


" 开始折叠
set foldenable
"设置语法折叠
set foldmethod=indent                
"设置折叠区域的宽度
set foldcolumn=0           
"设置折叠层数为
setlocal foldlevel=3      
"设置为自动关闭折叠
set foldclose=all   
"设置空格打开或关闭折叠                                 
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>    

set fileencodings=utf-8,gb18030

if has("win32")
    set guifont=YaHei\ Consolas\ Hybrid:h15
endif

我的VIM配置文件,留在此处做保存.

另外,我本人只是刚刚进入VIM学习...以上的内容只懂得有限的几个而已...

posted @ 2013-03-31 23:58  木何  阅读(43)  评论(0)    收藏  举报