www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - d.vim

reply naryl <cy ngs.ru> writes:
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.
Feb 01 2009
parent reply "Tim M" <a b.com> writes:
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?
Feb 01 2009
parent reply naryl <cy mgs.ru> writes:
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.
Feb 02 2009
parent reply Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
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
Feb 02 2009
next sibling parent naryl <cy ngs.ru> writes:
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.
Feb 02 2009
prev sibling parent Robert Fraser <fraserofthenight gmail.com> writes:
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
Feb 02 2009