0

This might be quite weird for you. After I press :wq and reopen my file strange characters appear like this @t += 1^[[>1;4402;0c , rather it should just be @t += 1. Program is not throwing any error or exceptions.Also these characters don't show up when I open the file in gedit or sublime text.They are also hooked on a particular line irrespective of code or any content on that line.Any help?

0sfh
  • 13
  • 3
  • 1
    Sounds like a bug in vim or in your terminal emulator. Which terminal emulator are you using? – Joni Jun 18 '17 at 08:02
  • Ubuntu terminal – 0sfh Jun 18 '17 at 08:51
  • Looks somehow like an [ANSI escape code](https://en.wikipedia.org/wiki/ANSI_escape_code). Which bytes does the file physically contain? Can you post the output of `od -c yourfile`? – weibeld Jun 26 '17 at 16:57
  • results of `od -c .vimrc` [here](https://pastebin.com/xQfVAeH9) – 0sfh Jun 27 '17 at 06:56

1 Answers1

1

Error might be because of encoding scheme. Try UTF-8.

For setting UTF-8 as default encoding scheme read here

Rajat Khandelwal
  • 477
  • 1
  • 5
  • 19