strange vi errors in Linux Mint/Ubuntu line 58: E488: Trailing characters: t_Sbet line 63: E171: Missing :endif

This happens on any file an even just typing "vi" whereas it never happened before.  I suspect an update or environment variable is causing this issue

When entering vi I get this weird stuff

line   58:
E488: Trailing characters: t_Sbet
line   63:
E171: Missing :endif

When exiting vi I get this weird stuff

  t_Sb=^[[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m

 

The Solution

/etc/vim/vimrc is bad

I added an endif and also commented out a line that caused the problem and commented the "n't wake up system" portion.

#1) Backup

cp /etc/vim/vimrc /etc/vim/vimrc-bad

I am not 100% sure if this harms anything but you can always restore the old/bad file

Find line 58 and replace everything with this:

if &term=="xterm"
     set t_Co=8
     "set t_Sbet t_Sf
"n't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"
endif

After setting the above I no longer get that annoying error/text.  Clearly some update missed up vimrc


Tags:

vi, errors, linux, mint, ubuntu, trailing, characters, t_sbet, endifthis, typing, quot, whereas, update, variable, endif, exiting, t_sb, etc, vim, vimrc, commented, portion, cp, harms, restore, xterm, t_co, t_sf, blinking, cursor, http, www, linuxpowertop, org, php, guicursor, blinkon, text,

Latest Articles

  • Recommended SFP+ to RJ45 Adapter Module for Switch Juniper Cisco Ubiquiti TP-Link etc...
  • Bad Power Supply Issue Story Diagnosing Troubleshooting
  • Getting started with AI (Artificial Intelligence) in Linux / Ubuntu using by deploying LLM (Language Learing Models) using Ollama LLMA
  • microk8s kubernetes how to install OpenEBS
  • Flash LSI MegaRAID 2208 to IT mode in Linux Mint/Debian/Ubuntu
  • LSI MegaRAID in Linux Ubuntu / Centos Tutorial Setup Guide megacli
  • Convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/413. convert-im6.q16: no images defined `pts-time.jpg' @ error/convert.c/ConvertImageCommand/3258. solution ImageMagick P
  • Apache PHP sending expires header solution cannot use cache with CDN
  • How to install virt-manager in Mint 22/Ubuntu 22
  • Infiniband Guide
  • python mysql install error: /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found mysql_config --version
  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide