Skip to content

Instantly share code, notes, and snippets.

@wanghuibin0
Last active March 30, 2021 05:37
Show Gist options
  • Save wanghuibin0/7ab600ccee48f3076cd60a6b87aa0028 to your computer and use it in GitHub Desktop.
Save wanghuibin0/7ab600ccee48f3076cd60a6b87aa0028 to your computer and use it in GitHub Desktop.

这是我的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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment