Monday, September 13, 2010

Re: Return } to previous indent

On 2010-09-13, Dotan Cohen wrote:
> I have smartindent set, but I'd like VIM to return to the previous
> indentation (back four spaces) when } (close block) is pressed. Is
> this possible? The terrific Kate (KDE text editor) and even the MS
> Visual Studio series have this wonderful feature.

'smartindent' should do this. The reference manual says that
setting 'cindent', 'compatible' or 'paste' will prevent
'smartindent' from working, though. Do you have any of those set?

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: