Help with d.vim Syntax file for Vim

via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Mon Jul 3 09:13:28 PDT 2017


On Sunday, 2 July 2017 at 09:50:28 UTC, ulyssesdwolfe wrote:
> Hi,
>
> There seems to be some missing statements in the standard d.vim 
> that gets distributed with vim regarding auto-commenting.
> Whenever I am in a multiline comment for example a ddoc 
> statement and start a new line by hitting the Enter key, the 
> result is an indentation of 1 on the new line and no comment 
> char unlike the syntax in normal c and cpp files. It doesn't 
> matter if the comment start was with '/**' or '/++'.
>
> I took a look at the runtime/syntax/c.vim for hacking the 
> auto-commenting out of that file and putting it in d.vim. But I 
> am not familiar with any of those calls.
> I was wondering if someone who is more familiar with Vimscript 
> can tell me what lines or quick fix I need to put in the syntax 
> file to get the auto-commenting to work for d editing.
>
> ty

Have you tried https://github.com/JesseKPhillips/d.vim? I'm not 
sure if
the issues you mentioned are fixed there, but if they're not I
suggest you open issues on that repo. Last time I contributed 
there
the author was helpful & responsive.


More information about the Digitalmars-d-ide mailing list