我的.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 <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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值