我的.vimrc配置文件

阅读更多
我的.vimrc配置文件 写道
"set mouse=a
set nu
set backspace=indent,eol,start
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
map :TlistToggle
noremap :w
noremap :make
noremap :make clean;make
noremap :Tlist
noremap :TlistSync
noremap :!./vitags.sh:cs reset
noremap :!cvs up

nnoremap @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')

set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1

set wrap
set hlsearch

"colorscheme default
"colorscheme elflord
colorscheme desert
"colorscheme blue
"colorscheme delek
"colorscheme evening
"colorscheme murphy
"colorscheme torte
"colorscheme daukblue
"colorscheme koehler.vim
"colorscheme pablo
"colorscheme ron
"colorscheme zellner
"colorscheme morning
"colorscheme peachpuff
"colorscheme shine

syntax on

set nocp
filetype plugin on
filetype indent on


if has("cscope")
set csprg=/usr/bin/cscope

set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
set cscopetag
endif

set tabstop=4
set shiftwidth=4
"autocmd FileType python set expandtab


set ru
set hls
set is
set sm
set cin
set cino=:0g0t0(sus

"let Tlist_Ctags_Cmd = '/usr/bin/ctags'
set autoread " read open files again when changed outside Vim
"set autowrite " write a modified buffer on each :next , ...
"set browsedir =current " which directory to use for the file browser
set incsearch " use incremental search
set nowrap " do not wrap lines
"set visualbell " visual bell instead of beeping
set nobackup
set nowritebackup
map :!ctags -R --c-kinds=+p --fields=+iaS --extra=+q .
map :!ctags -R .

"-------------------------------------------------------------------------------
" Change the working directory to the directory containing the current file
"-------------------------------------------------------------------------------
"if has("autocmd")
" autocmd BufEnter * :lchdir %:p:h
"endif " has("autocmd")

" When editing a file, always jump to the last cursor position.
" This must be after the uncompress commands.
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif

 

  • vimrc.zip (1.2 KB)
  • 下载次数: 0

你可能感兴趣的:(我的.vimrc配置文件)