Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
October 30, 2005 New Vim syntax and indent files | ||||
---|---|---|---|---|
| ||||
Some Vim/GVim updates for D: First version (0.1) of an indent file (used by vim for auto indent specific to D). (http://www.vim.org/scripts/script.php?script_id=1389) New version (0.14) of the syntax file. http://www.vim.org/scripts/script.php?script_id=379 Jason |
October 31, 2005 Re: New Vim syntax and indent files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jason Mills | On Sun, 30 Oct 2005 02:40:31 +0200, Jason Mills <jmills@cs.mun.ca> wrote:
> Some Vim/GVim updates for D:
>
> First version (0.1) of an indent file (used by vim for auto indent specific to D). (http://www.vim.org/scripts/script.php?script_id=1389)
>
> New version (0.14) of the syntax file. http://www.vim.org/scripts/script.php?script_id=379
>
> Jason
May I ask how does this indent file differs from standard vim intendation?
Regards,
|
October 31, 2005 Re: New Vim syntax and indent files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dawid Ciężarkiewicz | Dawid Ciężarkiewicz wrote:
> On Sun, 30 Oct 2005 02:40:31 +0200, Jason Mills <jmills@cs.mun.ca> wrote:
>
>> Some Vim/GVim updates for D:
>>
>> First version (0.1) of an indent file (used by vim for auto indent specific to D). (http://www.vim.org/scripts/script.php?script_id=1389)
>>
>> New version (0.14) of the syntax file. http://www.vim.org/scripts/script.php?script_id=379
>>
>> Jason
>
>
> May I ask how does this indent file differs from standard vim intendation?
>
> Regards,
Currently, this indent file simply turns 'cindent' option on when a D file is loaded. In vim help see the cindent option. Basically, this enables automatic indenting when typing in insert mode. For example, after typing a { and pressing enter, the cursor indents the next line automatically (according to your tab/space indent options). You can also use = to realign selected text according to the cindent style.
If you have vim configured to turn on 'cindent' regardless of file type, you will see no difference. This might be the "standard vim indentation" you are talking about. Additionally, you may have vim configured to ignore cindent. Again see vim help.
I hope to update the indent file later with more D specific indent styles (the current file assumes the C language).
Jason
|
November 01, 2005 Re: New Vim syntax and indent files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jason Mills | Jason Mills wrote: > Currently, this indent file simply turns 'cindent' option on when a D file is loaded. In vim help see the cindent option. Basically, this Oh. So nothing new for me. > I hope to update the indent file later with more D specific indent styles (the current file assumes the C language). That'd be something, but I hardly can see places where standard vim indentation could be better. The one I remember is dealing with protection attributes in classes (w/o {} and such}. I've got my Vim configured to walk almost perfectly with DMD (:mak :cn are working, Ddoc comments are nice placed). But if something could be still improved I'd be interested. Regards, -- Dawid Ciężarkiewicz |
April 02, 2006 Re: New Vim syntax and indent files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dawid Ciężarkiewicz |
> That'd be something, but I hardly can see places where standard vim indentation could be better. the one I remember is dealing with protection attributes in classes (w/o
{} and such}. I've got my Vim configured to walk almost perfectly with DMD (:mak :cn are working, Ddoc comments are nice placed). But if something could be still improved I'd be interested.
I have problems with the ddoc indention.
Would you like to share your configuration?
|
Copyright © 1999-2021 by the D Language Foundation