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

Open
xinleibird opened this Issue Oct 6, 2013 · 8 comments

Comments

Projects
None yet
5 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

This comment has been minimized.

Show comment Hide comment
@tpope

tpope Oct 6, 2013

Member

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

Member

tpope commented Oct 6, 2013

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

@tpope

This comment has been minimized.

Show comment Hide comment
@tpope

tpope Oct 6, 2013

Member

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

Member

tpope commented Oct 6, 2013

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

@xinleibird

This comment has been minimized.

Show comment Hide comment
@xinleibird

xinleibird Oct 7, 2013

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. ^_^

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 Feb 12, 2014

@tpope

This comment has been minimized.

Show comment Hide comment
@tpope

tpope Apr 3, 2014

Member

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.

Member

tpope commented Apr 3, 2014

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

This comment has been minimized.

Show comment Hide comment
@sam113101

sam113101 Feb 11, 2015

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.

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

This comment has been minimized.

Show comment Hide comment
@tpope

tpope Mar 15, 2015

Member

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

Member

tpope commented Mar 15, 2015

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

@sam113101

This comment has been minimized.

Show comment Hide comment
@sam113101

sam113101 Mar 15, 2015

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

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

@dbarnett

This comment has been minimized.

Show comment Hide comment
@dbarnett

dbarnett Aug 2, 2015

Looks like https://code.google.com/p/vim/issues/detail?id=183. Adding set t_u7= at the top of my vimrc fixed a similar issue for me (https://code.google.com/p/vim/issues/detail?id=390).

dbarnett commented Aug 2, 2015

Looks like https://code.google.com/p/vim/issues/detail?id=183. Adding set t_u7= at the top of my vimrc fixed a similar issue for me (https://code.google.com/p/vim/issues/detail?id=390).

@fidian fidian referenced this issue in fidian/hexmode Oct 6, 2016

Closed

`^[[2;2R` Printed when opening a file #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment