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

  • 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
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist