Tuesday, December 4, 2012

Re: vim: strange issue with gq

On 12/5/2012 12:20 AM, Benjamin R. Haskell wrote:
> It's a side-effect of 'smartindent' ('si').
>
> From :help 'smartindent':
>
> """
> An indent is automatically inserted:
> [...]
> - After a line starting with a keyword from 'cinwords'.
> """
>
> Default value of 'cinwords': "if,else,while,do,for,switch"
>
> So, it's because the second line starts with 'for'.
>
> In my experience, 'smartindent' is rarely smart. Most languages to
> which it might apply already have smarter indent functions. And outside
> of programming, you definitely don't want it turned on.

exactly that's what I just found of...
thanks for the smart response!
I'll turn it off from now on...

regards
ping

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