wrote:
> On 13/04/10 13:28, Aarto Matti wrote:
>
> > So I added this into my .vimrc to fix the problem:
> > autocmd BufRead * execute ":cd ".getcwd()
>
> This should be a no-operation, unless the current window has a local
> directory (set by :lcd) in which case (IIUC) it sets the global working
> directory to the current local directory. Not what I would want.
>
>
That's the point. This SHOULD be a no-operation, but it isn't. I can't
reproduce this reliably, but from time to time, I also see file paths
that are not simplified with respect to the current directory on a
fresh file load. Simply issuing :e after loading the file corrects the
issue for me (I have 'autochdir' set). The OP is saying that all it
takes is a ':cd .'. Presumably an :lcd would do something similar.
--
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