Monday, July 29, 2013

Re: Mapping Macro using smartindent

On Monday, July 29, 2013 12:45:09 AM UTC-5, SVN77KMF wrote:
>
> It looks like indentation wouldn't work in mappings, right?
>
>

Actually, yes it does. In fact, your mapping works just fine for me, launching gvim with gvim -N -u NONE -i NONE, setting your mapping, setting 'cindent', and typing the following text:

{

for (a=1; a<5; a++)
{

}
}

The {..} below the for loop was indented automatically by Vim.

>
> If so, what options do I have to solve this problem?
>

Something else in your config is probably interfering, or maybe you want your code formatted differently than Vim's cindent settings will give you. You can try messing with the cinoptions settings.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: