Monday, 24 June 2019

VIM showing "m" near white space on Cygwin


I recently upgraded all the packages on my Cygwin (x64) install and since then, my VIM shows "m" at the start of some lines and around whitespace. (My guess is that it might be in places where escape codes are present for syntax highlighting)


(Googling for the issue seems impossible)


Sample file: (Showing that it is not a \r\n issue...)


gert@local ~ $file .vimrc;cat -A .vimrc
.vimrc: ASCII text
set mouse=$

Vim view:


mset mmouse=
m~ ~
~
~
~
".vimrc" 1L, 11C 1,1 All

Other info:



  • mintty is used (Cygwin default?)

  • TERM and mintty's setting is set to "xterm-256color"

  • The "m" characters also appear around editing

  • set syntax= seems to help (Things like searches still have issues)

  • VIM 8.0

  • Cygwin version: 2.8.0(0.309/5/3)


Is there a way to get VIM back in a usable state, with colours.


This is in one of the vimrc files: (Possibly via this)


" Settings to try and get syntax working
set nocompatible
set nocp
set backspace=indent,eol,start
set term=xterm-256
set hlsearch
set t_Co=8
set t_Sb=m
set t_Sf=m

Removing the "t_Sb" and "t_Sf" settings gets rid of the "m"s but colours fails to work as well...



Answer



Removing these lines from the vimrc fixes it:


set t_Co=8
set t_Sb=m
set t_Sf=m
set term=xterm-256

(There might be other things in my /etc.vimrc as well, but this works for me...)


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...