Gerald Lai wrote:
For Netrw v98, this hack seems to make it work as requested:
Doesn't work for me :(
I installed the Decho plugin, and noticed that the 'cd' command inside
netrw works, but looks like something else is resetting the directory
back to the original value!
Is there some way I can
I finally managed to solve the problem!
Here's what is needed in the vimrc :
autocmd BufEnter,BufRead,BufNewFile,BufFilePost * \
execute :lcd . expand(%:p:h)
Previously, I was using only the 'BufEnter' event, that doesn't work
when changing directories from within netrw. Then Tony suggested
Hi All
I'm using the CD.vim script from:
http://vim.sourceforge.net/scripts/script.php?script_id=65
to synchronize the current working directory with the current buffer.
au BufEnter * execute :lcd . expand(%:p:h)
On Vim7, when I browse directories (e.g :e c:\Projects)... the current
Chris Sutcliffe wrote:
if exists('+autochdir')
set autochdir
else
autocmd BufEnter * silent! lcd %:p:h:gs/ /\\ /
endif
In my _vimrc and it's worked beautifully in both vim 6 and vim 7.
I just tried 'autochdir', and when i'm browsing a directory, it seems to
set the current working
[EMAIL PROTECTED] wrote:
:he netrw-problems
In particular, look at P6.
Thanks for the pointer, but unfortunately doing
let g:netrw_keepdir = 0
in _vimrc file does not seem to have any effect at all!
Here's what happens:
1) run gvim.exe
2) :pwd (output: c:\Vim\vim70)
3) :e c:\Projects\Test\