estranged
estranged

Reputation: 432

Incorrect Vim formatting in text file

I think this issue happens only in text file(s). So very often, but not always, when I open text file with vim, there are new line spaces inside file, even though I don't have anything inside real text file.

If I tried to remove it, or modify anything, everything will screw up, so I need to reopen file. It looks like this:

output

Couldn't find on the net about this issue.

Upvotes: 0

Views: 218

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172778

Check whether this also happens in GVIM. If it only appears in the terminal, you have a wrong value of $TERM, or (less likely) corrupt / wrong termcap definitions. Most terminals should understand a value of

$ export TERM=xterm

Upvotes: 1

Related Questions