digitalmars.D.announce - d.vim
- naryl (3/3) Feb 01 2009 For all vim users there's a little script to ease the most annoying part...
- Tim M (3/7) Feb 01 2009 I am a vim user so what does it do exactly with the imports and why are ...
- naryl (3/5) Feb 02 2009 Sorry. I'll update the script's page.
- Chris Nicholson-Sauls (9/15) Feb 02 2009 As an avid user of renaming-imports and selective imports, I'm not so
- naryl (2/19) Feb 02 2009 ATM it can at least remind you the module or modules with required symbo...
- Robert Fraser (2/5) Feb 02 2009 I call it "IConv", too ;-P
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
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
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
naryl wrote:Tim M Wrote: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-SaulsI 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
Chris Nicholson-Sauls Wrote:naryl wrote: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.Tim M Wrote: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-SaulsI 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
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