分类: LINUX
2012-02-17 22:06:13
"从此cscope与基本的要分离
syntax on
syntax enable
filetype plugin on
set background=light
set showcmd
set encoding=utf-8
"When .vimrc is edited, reload it
autocmd! bufwritepost .vimrc source ~/.vimrc
source ~/.cscope.vimrc
set textwidth=100
set splitbelow splitright
set matchpairs+=<:>
set et sta sw=4 tabstop=4 sts=4 " expandtab, smarttab, shiftwidth, tabstop, softtabstop
set hls
set cursorline
hi CursorColumn term=underline cterm=underline ctermbg=NONE ctermfg=NONE
set wildmenu
set wildmode=longest,full
set wrap
set ru
set nu
set is
set scroll=10 "default is half screen when
set scrolloff=3
set noshowmatch "when type (),the cursor jump
set tabpagemax=20
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
nnoremap ffp :set fileencoding=cp936
nnoremap ffu :set fileencoding=utf-8
"Taglist==========================================================
let Tlist_Inc_Winwidth=0
let Tlist_WinWidth=28
let Tlist_Show_One_File=1 "on dfl, show all tags in the buf
let Tlist_Exit_OnlyWindow=1 "on dfl, if only the Tlist is open, can't close the window
" autocmd and autoindent
if has("autocmd")
filetype plugin indent on "to turn on when 'on', the auto indent, or off
augroup vimrcEx
au!
autocmd FileType text setlocal textwidth=80
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
endif
"
" nnoremap include nmap vmap omap
"
nnoremap tta :execute Cs_add_file()
noremap ttd :r!date +\%Y-\%m-\%d
noremap ttf O
noremap ttF :cd /
noremap ttp mA:sp /dev/shm/xm
vmap tty y:!echo > /dev/shm/xm
"Set mapleader
let mapleader=','
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
noremap
" vi means inner, and va menas all of the block;
nnoremap
nnoremap
nnoremap
nnoremap
nnoremap
nnoremap
nnoremap
nnoremap
" Function keys
nnoremap
nnoremap
" in insert mode,
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
inoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
:cnoremap
nmap
nmap
vmap
vmap
vmap
vmap
" diff
hi DiffChange ctermbg=0
set diffopt=context:1
map