my .vimrc config file

My .vimrc config file reads
"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 <F4> :TlistToggle<CR>
noremap <F2> :w<CR>
noremap <F6> :make<CR>
noremap <S-F6> :make clean;make<CR>
noremap <F7> :Tlist<CR>
noremap <S-F7> :TlistSync<CR>
noremap <F3> :!./vitags.sh<CR>:cs reset<CR>
noremap <S-F3> :!cvs up<CR>

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

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 <C-F12> :!ctags -R --c-kinds=+p --fields=+iaS --extra=+q .<CR>
map <C-F11> :!ctags -R .<CR>

"-------------------------------------------------------------------------------
" 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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326482477&siteId=291194637