The "set nocompatible" fix doesn't work on 18.04.1 LTS server. The trigger condition appears to be a random operation and not repeatable. Symptoms include loss of tab completion and syntax highlighting. It is persistent through a re-edit of the same file. The fault can be cleared by removing .viminfo until the next random occurence.
Given the use of vi on a server instance with no GUU is very high I would request the importance of this bug is set to high as it significantly damages productivity when used in a professional context. -- 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