On Sun, May 15, 2011 at 9:56 AM, Andrea Aime
<andrea.a...@geo-solutions.it>wrote:
> c) all the way down to command line with vim, which also syntax
> highlights rst. Needs some obscure command
> to turn on word wrapping, save, ctrl-z to go to command line,
> build, firefox, "fg" to get vim back and continue.
> Don't like it but it's a possibility.
>
I use vim for working on Sphinx projects - when I want to build I make sure
my working dir is the one containing the makefile, then I use the
:make<http://vimdoc.sourceforge.net/htmldoc/quickfix.html#:make>command
like so:
:make html
This avoids having to background vim to run the command, and also populates
vim's quickfix list (see the documentation linked above) which lets you jump
automatically to syntax errors and warnings. I do still have to alt+tab to
firefox but a plugin to make it auto-reload the page periodically could
resolve that too. This one looks like a good candidate:
https://addons.mozilla.org/en-us/firefox/addon/reloadevery/
Of course, running vim in the root of the sphinx project means that you have
to type out the path to the file you want to edit - but vim allows globbing
in the edit command (:e **/file-i-want.rst). Tab completion also works
nicely with this, it is pretty great (though a bit slow for large directory
trees.)
Hope this helps.
--
David Winslow
OpenGeo - http://opengeo.org/
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel