v4orb2.wiki

описание пикапов и диссектора ВЭПП3-4
git clone http://www.inp.nsk.su/~bekhte/v4orb2.wiki.git
Log | Files | Refs

commit 48871ba78fd5580dfc1d73860957aaa98afa2b18
parent 2d8e839b864232ccb5b5e15940b54ce2571c857e
Author: S S <ss@qoo>
Date:   Mon Feb  1 19:48:05 +0600

add _vimrc

Diffstat:
_vimrc | 34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)
diff --git a/_vimrc b/_vimrc @@ -0,0 +1,34 @@ +set fileencodings=utf-8 +set tabstop=4 +set shiftwidth=4 +autocmd BufRead *.c,*.h,*.cpp,*.hpp set cindent +"autocmd BufRead *.c,*.h,*.cpp set foldmethod=syntax +"au BufWinLeave *.c,*.h,*.cpp mkview +"au BufWinEnter *.c,*.h,*.cpp silent loadview +autocmd BufReadPre *.md set fileencodings=utf-8 +"autocmd BufReadPre *.txt,*.koi8 set fileencodings=koi8-r +"autocmd BufReadPre 0readme.txt set fileencodings=utf-8 +autocmd BufEnter ?akefile* set include=^s\=include +autocmd BufLeave ?akefile* set include& +autocmd BufRead *.py set smartindent expandtab +autocmd BufRead *.cmd set syntax=tcsh +autocmd BufRead *.db set syntax=tcsh tabstop=2 shiftwidth=2 smartindent expandtab + +if has("cscope") + au QuickfixCmdPost make cs reset +endif + +if exists("*matchadd") + " highlight trailing spaces + au BufNewFile,BufRead * let b:mtrailingws=matchadd('ErrorMsg', '\S\zs\s\+$', -1) + " empty line + "au BufNewFile,BufRead * let b:mtrailingws=matchadd('ErrorMsg', '^\s\+$', -1) + " highlight tabs between spaces + "au BufNewFile,BufRead * let b:mtabbeforesp=matchadd('ErrorMsg', '\v(\t+)\ze( +)', -1) + au BufNewFile,BufRead * let b:mtabaftersp=matchadd('ErrorMsg', '\v( +)\zs(\t+)', -1) + + " disable matches in help buffers + au BufEnter,FileType help call clearmatches() +endif +" vim: set expandtab smartindent tabstop=2 shiftwidth=2: +