Skip to content

Loading…

vim-ruby breaks current directory for --remote-silent #152

Closed
dlee opened this Issue · 4 comments

3 participants

@dlee

If you pass the option --remote-silent to vim, it should not change the pwd of vim.

However, with commit b84bf72, passing --remote-silent to vim changes the pwd to ~, no matter what you pass in as arguments.

I even tried passing --cmd "cd /mypwd/", but vim still lands in ~.

@tpope
Vim-Ruby member

Assuming you have a .ruby-version in your home directory, I can reproduce. But it looks to me like the culprit is bundler.vim. Do you have that installed too? They both use the same technique, so it wouldn't surprise me if both cause the problem, but I can only reproduce it with the latter.

@dlee

Hmm.. I don't have .ruby-version in my ~ and I don't have bundler.vim either. In fact, I don't even have a .ruby-version in my project dir.

@tpope
Vim-Ruby member

What does :echo findfile('.ruby-version', '.;') in the requested file report?

@dlee

Nothing

@tpope tpope closed this in 5c3213a
@dkearns dkearns added the ftplugin label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.