Sunday, June 5, 2011

Re: Newlines being created automatically

On 2011-06-05, Siddhartha Kasivajhula wrote:
> Noble Vim sages,
> Lately, vim has started creating a newline as soon as I hit 72 columns in a
> line. I don't recall this happening before so it's quite possibly a result of
> my cat's fondness for sitting on my keyboard. Any idea how I can prevent this
> from happening?

This column is set by the 'textwidth' ('tw') and 'wrapmargin' ('wm')
options. Execute

:verbose set tw? wm?

[Tony, I didn't drop the "set" this time!] to see their current
values and where they were last set.

Depending on the type of text you are entering, this behavior can
also be influenced by the 'formatoptions' ('fo') option,
particularly the 't' and 'c' flags. As with 'tw' and 'wm',

:verbose set fo?

will show you the current value and where it was last set. The
default value for Vim is "tcq". For more details, see

:help 'tw'
:help 'wm'
:help 'fo'
:help fo-table

and for an overview, see

:help ins-textwidth
:help 25.1

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment