Vi 配置
来源:互联网 发布:c语言多线程函数 编辑:程序博客网 时间:2024/05/16 14:19
"set nu
syntax on
set guifont=DejaVu\ Sans\ Mono\ 12
set expandtab
set guioptions-=T
set nobackup
set formatoptions=tcrqn
set cindent
set incsearch
set autoindent
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set showmatch
"Show matching bracets
set showmatch
"
""Get out of VI's compatible mode
set nocompatible
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
set cscopequickfix=s-,g-,c-,d-,t-,e-,f-,i-
nmap <C-c><C-s> :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-g> :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-c> :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-t> :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-e> :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-f> :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-c><C-i> :cs find i <C-R>=expand("<cfile>")<CR><CR>
nmap <C-c><C-d> :cs find d <C-R>=expand("<cword>")<CR><CR>
endif
"Have the mouse enabled all the time
"set mouse=a
"
""Set to auto read when a file is changed from the outside
set autoread
"Enable filetype plugin
filetype plugin indent on
colo desert
set hlsearch
"let Tlist_Ctags_Cmd = '/usr/bin/ctags-exuberant'
nnoremap <silent> <F9> :TlistToggle<CR>
"let Tlist_Use_Right_Window=1
colorscheme delek
"colorscheme evening
set ruler
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
syntax on
set guifont=DejaVu\ Sans\ Mono\ 12
set expandtab
set guioptions-=T
set nobackup
set formatoptions=tcrqn
set cindent
set incsearch
set autoindent
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set showmatch
"Show matching bracets
set showmatch
"
""Get out of VI's compatible mode
set nocompatible
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
set cscopequickfix=s-,g-,c-,d-,t-,e-,f-,i-
nmap <C-c><C-s> :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-g> :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-c> :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-t> :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-e> :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-c><C-f> :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-c><C-i> :cs find i <C-R>=expand("<cfile>")<CR><CR>
nmap <C-c><C-d> :cs find d <C-R>=expand("<cword>")<CR><CR>
endif
"Have the mouse enabled all the time
"set mouse=a
"
""Set to auto read when a file is changed from the outside
set autoread
"Enable filetype plugin
filetype plugin indent on
colo desert
set hlsearch
"let Tlist_Ctags_Cmd = '/usr/bin/ctags-exuberant'
nnoremap <silent> <F9> :TlistToggle<CR>
"let Tlist_Use_Right_Window=1
colorscheme delek
"colorscheme evening
set ruler
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
0 0
- vi配置
- vi配置
- vi配置
- vi配置
- VI配置
- vi 配置
- vi配置
- vi 配置
- Vi 配置
- vi配置
- vi配置
- vi配置
- vi配置
- vi配置
- vi配置
- Vi使用配置备忘录
- vi的配置
- 我的vi 配置
- IOS中Json解析的四种方法
- 各种字符串Hash函数比较
- 标准草案叫做C++ 0x
- iostat命令
- 每天一个linux命令:find命令
- Vi 配置
- jQuery EasyUI扩展:validatebox实现多重规则验证
- HttpLive切片指令
- C++Vector用法 .
- hdu-4933-Miaomiao's Function(BC#4 1003)
- S3C2440上触摸屏驱动实例开发讲解(转)
- ZOJ1655Transport Goods Dijkstra
- 黑马程序员-集合框架
- Python模块结构和布局