On 15 Aug 2011, at 09:15, tonymcdaniel wrote:

> When I'm editing a source file (ie. Project/src/main.cpp) and use the
> "Build" command (or :make), I get an error that no Makefile can be
> located. Is there a way to have set the Build command to run make in
> the Project directory without having to change directories first?
> 
I would search vim.org for project manager plugins; there are more than a few. 
I use project.vim <http://www.vim.org/scripts/script.php?script_id=69> for 
instance.

> Another issue is if I'm editing a *.tex file which is part of a larger
> project. For instance, if I have a book where the main file is
> main.tex which includes chapter1.tex and chapter2.tex, is there a way
> to run Build while editing chapter1.tex and have it run on main.tex?
> In the past, I've just run latexmk on main.tex and let it auto-update
> whenever any of the included files is edited, but I would welcome a
> simpler way if one exists.

Are you using a plugin like Latex-suite or Latexbox? If you’re using the 
former, then all you need do is to add a main.latexmain file (empty) in the 
root of your latex directory. Although project.vim could probably solve the 
issue as well IIRC.

David P Henderson
c: xxx.xxx.xxxx
--
"Human beings are unable to be honest with themselves about themselves. They 
cannot talk about themselves without embellishing."
    -- Akira Kurosawa

-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to