New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
^[[2;2R
Printed when opening a file
#17
Comments
It happens for me as well, but I don't know enough vimscript to attribute it to just this plugin. When I first noticed the problem I was hoping it only affected me. Uncommenting or disabling all of my other plugins except hexmode and the codes disappear. Using hexmode + This is an ANSI escape code for a cursor position report, also known as CPR.
It is a response given from the terminal to a DECCIR, DECXCPR, or DSR (probably not what we use). My money is on DECSCPR. You can simulate this with bash: In my research I have found related bug reports and mailing list messages:
It also appears in different places. I can make a new file and it appears at the bottom, but for an existing file it appears at the top. |
For me it does still appear if only hexmode is enabled. It came to my mind that there may be a problem with the color scheme, but it occurs even when I disable mine and use vim's default. |
Are you able to narrow down the conflict to see what other plugins cause hexmode to spit out these codes? I'll do the same on my end. |
Oh, I misread your last comment. Are you saying that you see this problem with an empty |
When I leave all of my plugins enabled and change my .vimrc and simply comment out To test this further, I simply appended hexmode and my vimrc together. Next, I commented out the bit about pathogen. This eliminates the other plugins.
Anyway, summing up, simply adding the |
This is to do the best that I can with #17, even though the issue appears to be with vim itself.
After a ton more debugging, it appears that with a very minimal I did move the detection to BufReadPost and that seemed to help when calling I will happily accept better ideas for how to solve this problem in a more generic way! I will be closing this issue. Is it fixed? Not really since I can duplicate the problem pretty easily. Save this as
Here's my obligatory screen shot of nothing loaded besides pathogen + editorconfig when editing a text file. |
Thanks for your efforts. |
Hi there,
I use hexmode together with a bunch of other plugins and recently countered an error (after running
+BundleUpdate
) where a strange sequence of characters is printed to the buffer when opening a file. It looks like a terminal control sequence and I tracked this issue down to hexmode --- at least it does occur when hexmode is enabled and longer occurs when it's disabled.Just before the file's content has been loaded:
After the content has been loaded:
After refreshing the terminal:
It follows the set of plugins I am currently running. Full vim config is available here but may be slightly out of date.
The text was updated successfully, but these errors were encountered: