On 01/25/2013 04:53 PM, Ben Fritz wrote:
> On Friday, January 25, 2013 6:31:03 AM UTC-6, Jeroen Budts wrote:
>> I recently enabled the doxygen.vim script (part of Vim) to highlight
>> phpdoc inside php files. (let g:load_doxygen_syntax=1 in my .vimrc)
>> When I start typing a phpdoc and press enter, Vim inserts a *, but
>> without a space before it:
>> /**
>> * <- after <enter> vim auto inserts this
>>
>> With the doxygen-script disabled this is the (correct) behaviour:
>> /**
>> * <- after <enter> a leading space is inserted
>>
>> Does anyone know how this can be fixed?
>> My 'formatoptions' are set as follows: qrowcb
>
> It looks like your 'comments' option has been set incorrectly.
>
> Take a look at :help 'comments' and :help format-comments, and then
> you'll probably need to make use of the after directory to fix
> whatever the plugin breaks.
>
I checked the value of 'comments' but both with or without doxygen.vim
enabled I can see no difference in the 'comments' option:
:verbose set comments?
comments=s1:/*,mb:*,ex:*/,://,:#
Last set from /usr/share/vim/vim73/indent/php.vim
When my syntax is set to simply 'php' I have the expected behaviour, but
when I set the syntax to php.doxygen the space before the * is missing,
although the 'comments' option has exactly the same (correct?) value.
I checked the doxygen.vim script (which is at
/usr/share/vim/vim73/syntax/doxygen.vim) in my Vim install, but I can't
see anything related to this functionality.
I just tested doing the same with syntax=c.doxygen and there it works as
expected...
Any other suggestions?
Thank you!
Jeroen
--
--
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
Saturday, January 26, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment