On 04 Nov 2010, Ben Fritz wrote:
> 
> 
> On Nov 2, 11:03 am, Anthony Campbell <[email protected]> wrote:
> > In insert mode, if a line starts with "-" the next line is indented. This is
> > not what I want.
> >
> > After a lot of experimenting, I found that it was because either
> > textwidth or wrapmargin was set to a non-zero value. Is there any way to
> > get round this? I do need to set textwidth but I don't want to have to
> > keep correcting lines with initial "-".
> >
> 
> After some experimenting on MY end, the problem is actually in two
> settings:
> 
> 'comments' contains the string "fb:-"
> 'formatoptions' contains a 'c'
> 
> Removing either of these should fix your problem.
> 
> Note that this is actually a feature, it allows you to properly indent
> bulleted lists like this:
> 
> - item
>   one
> - item
>   two
> - item
>   three
> 
> See :help format-comments and of course the :help entry for
> 'comments', 'formatoptions', and fo-table for details.
> 

Thanks very much for this. Yes, it does fix things. I'd guessed it was a
feature rather than a bug.

Cheers,

Anthony

-- 
Anthony Campbell - [email protected] 
Microsoft-free zone - Using Debian GNU/Linux 
http://www.acampbell.org.uk - sample my ebooks at
http://www.smashwords.com/profile/view/acampbell

-- 
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

Reply via email to