Thursday, May 23, 2013

Re: How to get Allman style while typing and templated C++ code in Vim 7.3

On Thursday, May 23, 2013 2:53:58 AM UTC-5, arj...@gmail.com wrote:
>
> Now i have
>
> ...
>
> autocmd FileType cpp set formatprg=astyle\ -s2pPA1
>
> ...
>
> but I got nothing out of this formatpgr, it's like nothing changed, not even with gg=G, I don't know where to look anymore, vim still uses the old formatting tool, it's supposed to be ok as far as I know.

After you edit your cpp file, are things set as you expect?

:verbose set formatprg? formatexpr? filetype? formatoptions?

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