vim-one icon indicating copy to clipboard operation
vim-one copied to clipboard

chdir not working when remote launching

Open reedes opened this issue 11 years ago • 0 comments

This isn't a one-vim issue — it is an undiagnosed MacVim issue which one-vim exposes.

Launching to existing remote VIM server:

/Applications/MacVim.app/Contents/MacOS/Vim -g --servername VIM --remote Chapters/005-Introduction.md

(also happens with --remote-silent when the remote server does yet exist)

When Signify is used with a git project, the directory has unexpectedly been changed to Chapters

Digging further, Signify's run_in_dir() has a command to properly restore the directory, but it's not taking.

https://github.com/mhinz/vim-signify/blob/master/autoload/sy/util.vim#L31-L41

Note that an additional restore (or a cd -) does restore the directory properly.

Need to dig even further, to isolate a test case for the Vim/MacVim developers.

reedes avatar Aug 16 '14 13:08 reedes