Friday, April 27, 2012

Re: vim and doxygen (c-style) block comment problems

Running ":verbose set ft? autoindent? smartindent? cindent? cino?"
from my Vim it says:

filetype=cpp
Last set from /usr/local/share/vim/vim70/filetype.vim
autoindent
Last set from ~/.vimrc
smartindent
Last set from ~/.vimrc
cindent
Last set from /usr/local/share/vim/vim70/indent/cpp.vim
cinoptions=(0
Last set from ~/.vimrc

I tried adding W2s to my cinoptions like you have, as well as setting
noautoindent and nosmartindent, but I still have the problem.
Hmm... maybe the cindent and cinoptions get set differently between
vim 7.0 and 7.3?


On Fri, Apr 27, 2012 at 10:51 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
> On Friday, April 27, 2012 9:42:47 AM UTC-5, Justin wrote:
>>
>> Sorry the text got garbled in the original example.  Let me try again.
>> This is what I want:
>>
>> class Test
>> {
>>     public:
>>         /************************************************//**
>>          * @brief
>>          *      This is the class constructor
>>          ****************************************************/
>>         Test() { }
>>
>>         /************************************************//**
>>          * @brief
>>          *      This is the class destructor
>>          ****************************************************/
>>         ~Test() { }
>> };
>>
>> And this is what I get:
>>
>> class Test
>> {
>>     public:
>>         /************************************************//**
>>         * @brief
>>             *      This is the class constructor
>>             ****************************************************/
>>             Test() { }
>>
>>         /************************************************//**
>>         * @brief
>>             *      This is the class destructor
>>             ****************************************************/
>>             ~Test() { }
>> };
>
> In my Vim, if I re-indent the "what I get" text using the = operator, which would presumably give the same result as letting the auto-indent do its thing while typing, I get exactly your first text. What does this say, for you?
>
> :verbose set ft? autoindent? smartindent? cindent? cino?
>
> Mine says:
>
>  filetype=cpp
> noautoindent
> nosmartindent
>  cindent
>        Last set from C:/Program Files (x86)/vim/vim73/indent/cpp.vim
>  cinoptions=(0,W2s
>        Last set from U:/vimfiles/after/indent/c.vim
>
> --
> 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



--
Justin Randall

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