Re: Tips for vim users

2006-09-26 Thread n0dalus
On 9/26/06, Troy Rollo <[EMAIL PROTECTED]> wrote: 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 Thanks! I put that up on the Wiki too. F

Re: Tips for vim users

2006-09-26 Thread n0dalus
On 9/26/06, Troy Rollo <[EMAIL PROTECTED]> 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 tab

Re: Tips for vim users

2006-09-26 Thread Troy Rollo
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 e

Re: Tips for vim users

2006-09-25 Thread Troy Rollo
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 ad

Tips for vim users

2006-09-25 Thread n0dalus
Hi, Recently I learned a way to have vim automatically change settings when I'm editing wine source code: 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 tabsto