www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Vanilla Vim with D

reply Dlangofile <please no.com> writes:
Hi to all,

I'm trying to approach Vim as an editor for D, starting from 
scratch...
I've a pretty vanilla vimrc, and only CtrlP as a plugin: not a so 
bad experience right now!

First question, what's the best, simplest and fast approach for:

- compile from inside (rdmd or dmd right now)
- jump in the code fixing the compilation errors?

Thanks vim guys!

/DF
Jun 18 2016
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Saturday, 18 June 2016 at 07:55:41 UTC, Dlangofile wrote:
 - compile from inside (rdmd or dmd right now)
 - jump in the code fixing the compilation errors?
:set makeprg=rdmd\ % Do that to setup, then just :make to tell it to run that command and jump around to the errors it sees.
Jun 18 2016
parent Dlangofile <please no.com> writes:
On Saturday, 18 June 2016 at 12:36:04 UTC, Adam D. Ruppe wrote:
 On Saturday, 18 June 2016 at 07:55:41 UTC, Dlangofile wrote:
 - compile from inside (rdmd or dmd right now)
 - jump in the code fixing the compilation errors?
:set makeprg=rdmd\ % Do that to setup, then just :make to tell it to run that command and jump around to the errors it sees.
Thank you Adam, so I'm going to learn about the quickfix...
Jun 18 2016