On 2007-02-05, John Doe <[EMAIL PROTECTED]> wrote:
> No no, the options is local to a buffer. The only way
> I can think of is to create a hook of some sort
> (events) and do 'set tw=0' after a file loads, but
> gurus might know better.
There are several ways to do this. If this is a problem for only a
few file types, then the "standard" solution is to create your own
plugin file for each file type for which this is a problem and put
them in ~/.vim/after/ftplugin/ on Unix or
$VIM\vimfiles\after\ftplugin on Windows. Each file would contain
just this line:
setlocal tw=0
If you want to do this for all file types, you might be better off
putting this in your ~/.vimrc:
au FileType * setlocal tw=0
It's important to put this towards the end of your ~/.vimrc, after
any :filetype command(s), so that this autocommand is executed
_after_ any filetype plugins are loaded.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
| Spokane, Washington, USA