Further investigation with a recompiled version more recent than that shipped with 18.04 yields that syntax highlighting failure is caused by redrawtime being exceeded - often triggered after using G to move to the end of the file. It is not possible to set "syntax on" manually at that point as it immediatetly gets disabled again unless you move to the start of the file with g.
This explains the "persistence" due to the "jump to the previously edited line in the file" setting being set - but forgetting it upon deletion of .viminfo as this is where this Info is stored. Without it vi opens with the cursor at line 1. In my case this problem has occurred following an upgrade and has never happened before on the same hardware running the same applications for many years with lots of files being edited multiple times every day - day in day out. Ie something in the timing dynamics when running vi has changed wirh 18.04 See https://github.com/vim/vim/issues/2790 for further discussion and possible workarounds. ** Bug watch added: github.com/vim/vim/issues #2790 https://github.com/vim/vim/issues/2790 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to vim in Ubuntu. https://bugs.launchpad.net/bugs/1767314 Title: Ubuntu Bionic vi/vim not working correctly Status in vim package in Ubuntu: Confirmed Bug description: The vim default configuration in Bionic does not match Ubuntu 17.10 nor Centos 7 and is hard to use. It auto-inserts tabs or spaces, and the '/' search mode command works differently (pressing enter is required before you can use cursors left/right). For some discussion, please see https://askubuntu.com/questions/1026820/vi-vim-usage-in-ubuntu-bionic- not-normal/1028684#1028684 Setting :set nocompatbile in ~/.vimrc fixes it, but this should not be required. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1767314/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp