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



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:
let &guicursor = &guicursor . ",a:blinkon0"

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

Latest Articles

  • AMD Set Fan Speed and Other Powerplay Memory/CPU Timings with a Linux script
  • Ethereum Mining Claymore Nanopool Error
  • genisoimage errors with long filenames and deep directory structures
  • Linux Kernel USB Export Errors
  • How to download gajim 0.16.9 XMPP/Jabber client so you can use OMEMO encryption
  • HP DL385 G7 Linux BIOS Update Flash
  • hwloc-nox set CPU affinity in Linux
  • Firefox An error occurred during a connection to some-ip-or-domain. SSL peer reports incorrect Message Authentication Code. Error code: SSL_ERROR_BAD_MAC_ALERT Solution
  • Proxmox understanding the directory structure and why an NFS datastore appears to be missing files/isos
  • pandoc convert markdown to html
  • Proxmox error uploading an iso solution
  • Cannot install moodle
  • MySQL change for Antelope format to Barracuda error solution
  • vmkping -I vmk1 PING ( 56 data bytes sendto() failed (Host is down)
  • gvfs mount in /run/user cannot be accessed or displayed wrong permissions
  • VMWare vSphere 6.7 Errors Solution 503 Service Unavailable (Failed to connect to endpoint:
  • How To Enable Nested KVM so guests can virtualize with hardware extensions
  • vi error solution E166: Can't open linked file for writing
  • Supermicro IPMI / KVM / BMC Remote Console Screen Resizing Issue - Window Cut Off Solution
  • Linux bash shell doesn't show username, hostname or current path fix solution