Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Behind file name, there have a weird "^[[2;2R" string #175

Open
xinleibird opened this Issue · 7 comments

4 participants

@xinleibird

When i create a new ruby file by typed vim test.rb, there have weird ^[[2;2R string behand filename.

like this:

meitu

When set filetype plugin off , every thing is ok.
I think there's a little error in ftplugin/ruby.vim .

@tpope
Owner

Looks like a terminal issue. Vim-ruby might be triggering it but I have no idea how to reproduce.

@tpope
Owner

One thing you could try is temporarily switching to an English locale, since that's the most obvious difference.

@xinleibird

Thanks Tpope, I've tried switch export $LANG=en_US.UTF-8 even switch system language to en_US, but it's showed same issue still.

...by the way, i like your vim plugins, Tpope. ^_^

@dkearns dkearns added the ftplugin label
@tpope
Owner

You can try deleting parts of ftplugin/ruby.vim to see if you can narrow down which part is causing the problem. My guess would be calling s:query_path(), just because a system() call could trigger basically anything.

@sam113101

Hey @tpope, I'm having the same issue here. Your guess was correct, the line that causes the bug is line 122 in ftplugin/ruby.vim, which is "let g:ruby_default_path = s:query_path($HOME)".

Note that I don't get any gibberish in xterm, it seems to be happening only in gnome-terminal.
I've tried both zsh and bash, what shell I'm using doesn't seem to matter.

@tpope
Owner

Wild guess, but do any of you have i in 'shellcmdflag'?

@sam113101

@tpope shellcmdflag=-c for me, no sign of -i.

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.