Closed oblitum closed 7 years ago
Would you mind sharing your .vimrc? I suspect you have some special characters in there that causes the plugin to think it's a binary file.
@chaoren https://github.com/oblitum/dotfiles/blob/56d4dceba6c5b5a1e06159b7f243959759908096/.vimrc. I have special chars at https://github.com/oblitum/dotfiles/blob/56d4dceba6c5b5a1e06159b7f243959759908096/.vimrc#L158-L159, they can't be viewed on GitHub.
@chaoren I still need to change raw escapes to https://groups.google.com/forum/#!msg/vim_dev/JLp01xUC7v0/QJoKSfxBBwAJ
yep, changing from using raw escapes for that two lines to:
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
solves the issue with hexmode. But I still think Hexmode heuristics are a bit loose.
I'm glad that there's a workaround for this issue. I'm going to close it and have opened one that addresses @chaoren's comments and tackles the issue a bit more accurately.
After the last commit when I open my
~/.vimrc
file withvim ~/.vimrc
it's open in hexmode, and the filetype isxxd
. Disabling the plugin fix the issue.