Tips for vim users

Troy Rollo wine at troy.rollo.name
Tue Sep 26 02:06:31 CDT 2006


On Tuesday 26 September 2006 09:34, Troy Rollo wrote:
> On Monday 25 September 2006 19:47, n0dalus wrote:
> > At the bottom of my ~/.vimrc (create it if it doesn't exist):
> > if !exists("loaded_vimrc_autocmd")
> >     let loaded_vimrc_autocmd=1
> >     autocmd BufNewFile,BufRead /data/wine/* set expandtab tabstop=8
> > softtabstop=4
> > endif
>
> You might want to add "shiftwidth=4" so autoindent works correctly.

And add "|hi link cCommentL cError" to have C++ comments hilighted as errors, 
giving:

autocmd BufNewFile,BufRead /data/wine/* set expandtab tabstop=8 softtabstop=4 
shiftwidth=4|hi link cCommentL cError
-- 
Troy Rollo - wine at troy.rollo.name



More information about the wine-devel mailing list