Eliethesaiyan
Eliethesaiyan

Reputation: 2322

Vim behaving strange ,whenever i reach a certain line,it starts to highlight it and i get an error in most programs

i am not sure what is causing this, going back and forth in insert mode,i sometime get into some strange situation where after a number of characters written on a line, vim start highlighting part of that line. I tried to delete that line and and start again but when it reaches that points,it starts again highlighting for no obvious reasons. i suspect that there might be some hidden character but i am not sure how to check it. enter image description here

whenever i reach the part after username value, it highlights. I deleted the line and started to type after the end of the previous line but as soon as i reach that part,it starts to highlight again. I close the file and reopen it again,that part is still highlighted.

whenever i try to mount my samba sever,it say parse error on that line and i also remember that it use to happens in python,it also caused me problems that i had to use gedit to delete and write another line. This time, i am connecting to a server,therefore it won't be easy for me to use gedit to correct this problem and i also think its not a lasting answer. I tried to search but all the question i`ve seen are not related to this or i am don't know the right question to look for,that is why i am formulating it here the best that i can. Any help would be appreciated.

EDIT content of my vimrc

execute pathogen#infect()
syntax on
filetype plugin indent on

only pathogen is installed

Upvotes: 0

Views: 316

Answers (1)

Thomas Dickey
Thomas Dickey

Reputation: 54465

Your /etc/fstab file has a spurious blank before password (treated as a field separator), and vim's syntax highlighting flags that as a syntax error.

Upvotes: 3

Related Questions