On 16/09/12 20:08, shawn wilson wrote:
> i like autochdir so that i can easily rename files and :E stuff where
> i am. but, then if i use command-t again, it is limited to the current
> directory. how do i make the pwd of certain commands the path vim was
> opened in and the pwd of another set of commands the pwd of the file
> of the current buffer?
>
What about not using 'autochdir' but
:lcd %:h
in the window(s) where you want the current directory to be that of the
current file? Of course if you want the PWD to _follow_ the current file
in some windows or tabs but not in others, this won't work. Maybe open
two or more Vim sessions then, and :set acd in some of them but but not
others?
See also the Note at the end of :help 'acd':
> Note: When this option is on some plugins may not work.
Best regards,
Tony.
--
How do you explain school to a higher intelligence?
-- Elliot, "E.T."
--
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
Sunday, September 16, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment