这是我的vim配置文件
全局使用请放在/etc/vim/vimrc.local
给某个用户使用请放在$HOME/.vimrc
filetype plugin indent on | |
syntax on | |
set hlsearch | |
set incsearch | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
"set textwidth=79 | |
set pastetoggle=<F9> | |
set tags+=./tags | |
set mouse-=a | |
nmap <F2> :nohlsearch | |
augroup filetype | |
au! BufRead,BufNewFile *.ll set filetype=llvm | |
au! BufRead,BufNewFile *.td set filetype=tablegen | |
au! BufRead,BufNewFile *Makefile* set filetype=make | |
augroup END | |
autocmd BufReadPost * | |
\ if line("'\"") > 0 && line("'\"") <= line("$") | | |
\ exe "normal! g'\"" | | |
\ endif |