Tuesday, April 26, 2011

Re: Current Directory; how can I set it permanently?

On Apr 26, 10:46 am, pa...@ezrider.co.uk wrote:
>  Hi All,
> Basically, VIM remembers the CD (Current Directory) from a file ages
> ago, and I simply cannot goad VIM into remembering a new one
<snip>

You could use a session (:mksession <filename>). The session file
stores a new current directory. So if you cd to a new directory and
save your session with :mksession! <filename>, the dir is remembered.
Start Vim with (g)vim -S <filename> to use the session file.

John

--
You received this message from the "vim_use" 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

No comments:

Post a Comment