[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vim compiles always in root directory
From: |
Mark Knoop |
Subject: |
Re: vim compiles always in root directory |
Date: |
Sat, 29 Mar 2008 13:34:33 +0000 |
On Wed, 2008-03-26 at 19:17 +0100, Wolfgang Mechsner wrote:
> compiling LilyPond in vim prompts always the output files in root
> directory. It doesn't matter where the source file is. But I want the
> output in the directory in which source file is.
>
> Where can I change this?
Put
autocmd BufEnter * cd %:p:h
in your ~/.vimrc
--
Mark Knoop