- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " Vim runtime configuration for common usage
- " Maintainer: WarGrey <yoshua.estelle@gmail.com>
- " Last Change: 2008 Jul 28
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- colorscheme wargrey
- filetype plugin on
- filetype indent on
- syntax on
- syntax enable
- syntax sync fromstart
- set ambiwidth=double
- set autoindent
- set autoread
- set backspace=eol,start,indent
- set bufhidden="wipe"
- set cindent
- set cinoptions=:0g0t0(sus
- set cmdheight=9
- set comments=sr:/*,mb:*,ex:*/,://
- set complete=.,w,b,u,U,k,s,i,d,t
- set completeopt=menu,preview
- set dictionary=""
- set nodigraph "<==
- set encoding=utf-8
- set fileformats=unix,dos,mac
- set foldenable
- set foldlevel=0
- set foldmethod=syntax
- set formatoptions=croql
- set grepprg=grep/ -nH/ $*
- set guifont=Courier/ 10/ Pitch/ 10
- set hidden
- set history=1024
- set incsearch
- set laststatus=2
- set linebreak
- set magic
- set matchtime=2
- set mouse=a
- set nobackup
- set nocompatible
- set noexpandtab
- set noerrorbells
- set noswapfile
- set novisualbell
- set nowritebackup
- set number
- set pastetoggle=<Insert>
- set pumheight=8
- set ruler
- set shiftwidth=4
- set sidescroll=1
- set showcmd
- set showfulltag
- set showmatch
- set showmode
- set showtabline=2
- set smartindent
- set smartcase
- set smarttab
- set scrolloff=8
- set softtabstop=4
- set statusline=%{CurDir()}/ %l/%L(%p%%):%c/ [ASCII:%b]
- set switchbuf=usetab
- set tabline=%yShell:%{CurDir()}/ %f/ %m%r%h%w%k
- set tabstop=4
- set textwidth=128
- set thesaurus=""
- set viminfo='10,/"100,:20,%,n~/.viminfo
- set whichwrap+=<,>,h,l
- set wildmenu
- set wrap
- let Grep_Skip_Dirs = 'RCS CVS SCCS .svn'
- let Tlist_Ctags_Cmd = "/usr/bin/ctags"
- let Tlist_File_Fold_Auto_Close = 1
- let Tlist_Show_Menu = 1
- let Tlist_Sort_Type = "name"
- let Tlist_Use_Right_Window = 1
- let g:explHideFiles='^/.'
- let g:explSplitBelow=1
- let g:explSplitLeft=1
- let g:explVertical=1
- let g:explWinSize=35
- let g:miniBufExplMapWindowNavVim = 1
- let g:miniBufExplMapWindowNavArrows= 1
- let g:miniBufExplModSelTarget = 1
- let g:miniBufExplSplitBelow=1
- let g:miniBufExplUseSingleClick = 1
- let g:miniBufExplVSplit = 20
- let g:miniBufExplorerMoreThanOne = 2
- let g:winRefreshWhenEnter = 1
- let g:winManagerWindowLayout='FileExplorer|TagList,TagsExplorer'
- let mapleader = "~"
- inoremap <C-q> <ESC>
- vnoremap <C-q> <ESC>
- inoremap <S-F12> <ESC>:q!<CR>
- nnoremap <S-F12> :q!<CR>
- inoremap <M-F12> <ESC>:qall<CR>
- nnoremap <M-F12> :qall<CR>
- inoremap <M-S-F12> <ESC>:qall!<CR>
- nnoremap <M-S-F12> :qall!<CR>
- inoremap <C-a> <ESC>ggv<C-END>
- inoremap <C-G> <ESC>1G=Gi
- inoremap <C-r> <ESC><C-r>a
- inoremap <C-s> <ESC>:w<CR>a
- inoremap <C-w> <ESC>:wall<CR>a
- inoremap <C-u> <ESC>:u<CR>i
- inoremap <F3> <ESC>*i
- inoremap <S-F3> <ESC>#i
- inoremap <C-F3> <ESC>Ni
- inoremap <C-S-F3> <ESC>ni
- inoremap <F5> <ESC>:wall<CR>:make<CR>:clist!<CR>
- inoremap <S-F5> <ESC>:wall<CR>:make test<CR>:clist!<CR>
- inoremap <C-F5> <ESC>:wall<CR>:make run<CR>:clist!<CR>
- inoremap <C-S-F5> <ESC>:wall<CR>:make mkdoc<CR>:clist!<CR>
- inoremap <F6> <ESC>:clist!<CR>
- inoremap <F9> <ESC>:split<CR>i
- inoremap <C-F9> <ESC>:vsplit<CR>i
- inoremap <S-F9> <ESC>:vertical diffsplit
- inoremap <F10> <ESC>:WMToggle<CR>i
- inoremap <C-F11> <ESC>:call CommentLine()<CR><Up>i
- inoremap <M-F11> <ESC>:call UnCommentLine()<CR><Up>i
- inoremap <M-Up> <ESC>:cprevious<CR>i
- inoremap <M-Down> <ESC>:cnext<CR>i
- inoremap <M-Left> <ESC>:colder<CR>i
- inoremap <M-Right> <ESC>:cnewer<CR>i
- inoremap <C-]> <ESC>g<C-]>
- inoremap <C-]><C-]> <ESC><C-]>
- inoremap <C-t> <ESC><C-t>
- nnoremap <F3> *
- nnoremap <S-F3> #
- nnoremap <C-F3> N
- nnoremap <C-S-F3> n
- noremap <space> /
- noremap <C-]><C-]> <C-]>
- noremap <C-]> g<C-]>
- noremap <CR> :
- noremap <C-g> 1G=G
- noremap <C-a> ggv<C-END>
- noremap <C-s> :w<CR>
- noremap <C-u> :u<CR>
- noremap <C-w> :wall<CR>
- noremap <F5> :wall<CR>:make<CR>:clist!<CR>
- noremap <C-F5> :wall<CR>:make run<CR>:clist!<CR>
- noremap <S-F5> :wall<CR>:make test<CR>:clist!<CR>
- noremap <C-S-F5> :wall<CR>:make mkdoc<CR>:clist!<CR>
- noremap <F6> :clist!<CR>
- noremap <F9> :split<CR>
- noremap <C-F9> :vsplit<CR>
- noremap <S-F9> :vertical diffsplit
- noremap <F10> :WMToggle<CR>
- noremap <C-F11> :call CommentLine()<CR>
- noremap <M-F11> :call UnCommentLine()<CR>
- noremap <M-Up> :cprevious<CR>i
- noremap <M-Down> :cnext<CR>i
- noremap <M-Left> :colder<CR>i
- noremap <M-Right> :cnewer<CR>i
- vnoremap <C-c> "+y
- vnoremap <C-x> "+d
- vnoremap <F3> "+y<ESC>:%s///g
- vnoremap <C-F11> :call RangeCommentLine()<CR>
- vnoremap <M-F11> :call RangeUnCommentLine()<CR>
- cnoremap <leader>J /usr/java/default/
- cnoremap <leader>V /home/Estelle/Programs/share/vim/vim71/
- cnoremap <leader>T /home/Estelle/Programs/share/texlive/2008/
- imap <unique> <c-F2> <ESC><c-F2>a
- imap <unique> <s-F2> <ESC><s-F2>a
- imap <unique> <F2> <ESC><F2>a
- autocmd BufReadPost * if line("'/"") > 0|if line("'/"") <= line("$")|exe("norm '/"")|else|exe "norm $"|endif|endif
- autocmd BufNewFile,BufRead *./(txt/)/@! inoremap ' ''<esc>:let leavechar="'"<cr>i
- autocmd BufNewFile,Bufread *./(vim/)/@! inoremap " ""<esc>:let leavechar='"'<cr>i
- autocmd BufRead,BufNew :call UMiniBufExplorer
- source $VIMRUNTIME/ftplugin/man.vim
VIM:我的vimrc
最新推荐文章于 2024-06-30 22:37:06 发布