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
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.
Ah, I see the problem. Yes, vim has hooks (autocommands,
verbosely detailed at ":help autocmd.txt" where you can rea
Try putting the following in your ~/.vimrc.
set textwidth=0
A zero for textwidth, sounds bizarre.
- Original Message
From: John Doe <[EMAIL PROTECTED]>
To: vim@vim.org
Sent: Monday, February 5, 2007 4:10:14 PM
Subject: test and question
Works? Anyway my question:
Is it possi
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.
Need Mail bonding?
Go to the Ya
Works?
Yup.
Is it possible to set a global textwidth option in
some way? It is annoying me that it is set to 78 after
pretty much every file I load.
Edit your $HOME/.vimrc (or _vimrc on win32) and add the line
set tw=78
Presto!
-tim
Works? Anyway my question:
Is it possible to set a global textwidth option in
some way? It is annoying me that it is set to 78 after
pretty much every file I load.
Sucker-punch spam with award-winning protecti