Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
February 02, 2009 d.vim | ||||
---|---|---|---|---|
| ||||
For all vim users there's a little script to ease the most annoying part when programming in D. Imports. http://www.vim.org/scripts/script.php?script_id=2534 Be warned. I learned vim script while writing it so there may be bugs. |
February 02, 2009 Re: d.vim | ||||
---|---|---|---|---|
| ||||
Posted in reply to naryl | On Mon, 02 Feb 2009 18:37:55 +1300, naryl <cy@ngs.ru> wrote:
> For all vim users there's a little script to ease the most annoying part when programming in D. Imports.
> http://www.vim.org/scripts/script.php?script_id=2534
> Be warned. I learned vim script while writing it so there may be bugs.
I am a vim user so what does it do exactly with the imports and why are imports the most annoying thing?
|
February 02, 2009 Re: d.vim | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim M | Tim M Wrote:
> I am a vim user so what does it do exactly with the imports and why are imports the most annoying thing?
Sorry. I'll update the script's page.
And I find anything annoying that can be easily automated by IDE/editor but is not.
|
February 02, 2009 Re: d.vim | ||||
---|---|---|---|---|
| ||||
Posted in reply to naryl | naryl wrote:
> Tim M Wrote:
>
>> I am a vim user so what does it do exactly with the imports and why are imports the most annoying thing?
> Sorry. I'll update the script's page.
> And I find anything annoying that can be easily automated by IDE/editor but is not.
As an avid user of renaming-imports and selective imports, I'm not so confident that my IDE/editor can or should automate them. How is my editor to know that when I use 'IConv.toString(...)' it means to issue "private import IConv = tango .text .convert .Integer;"? I suppose it could be made a setting somewhere (I do usually reuse the same identifiers for common renaming-imports, such as my example). *shrug* Depends on one's needs, I suppose.
-- Chris Nicholson-Sauls
|
February 02, 2009 Re: d.vim | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris Nicholson-Sauls | Chris Nicholson-Sauls Wrote:
> naryl wrote:
> > Tim M Wrote:
> >
> >> I am a vim user so what does it do exactly with the imports and why are imports the most annoying thing?
> > Sorry. I'll update the script's page.
> > And I find anything annoying that can be easily automated by IDE/editor but is not.
>
> As an avid user of renaming-imports and selective imports, I'm not so confident that my IDE/editor can or should automate them. How is my editor to know that when I use 'IConv.toString(...)' it means to issue "private import IConv = tango .text .convert .Integer;"? I suppose it could be made a setting somewhere (I do usually reuse the same identifiers for common renaming-imports, such as my example). *shrug* Depends on one's needs, I suppose.
>
> -- Chris Nicholson-Sauls
ATM it can at least remind you the module or modules with required symbol. You'll only need to write "IConv = ". You're right that D import management is not as easily automated as for example Java.
|
February 02, 2009 Re: d.vim | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris Nicholson-Sauls | Chris Nicholson-Sauls wrote:
> How is my editor to know that when I use 'IConv.toString(...)' it means to issue "private import IConv = tango .text .convert .Integer;"?
I call it "IConv", too ;-P
|
Copyright © 1999-2021 by the D Language Foundation