Vim is still present and executable even after running apt remove and purge on its package

Solution 1:

You uninstalled vim not vim. vim-tiny, vim-nox, vim-gtk, and vim-athena all provide vim compiled with different options.

Solution 2:

To find the location of a program, use the whereis command

whereis vim

It should show you if and where it is installed.

Please also note: $VIMRUNTIME is only a directory holding mainly configuration files. Have a closer look here.

Solution 3:

Based on answers by hildred/Fiximan, I used the following command and it worked:

sudo  apt-get purge --auto-remove vim-gtk3

I am using Ubuntu 20.04 LTS.

Solution 4:

Your vim can also be a symlink to the part of neovim package, which is sometimes hard to find, because its "vim" part is in the end. After removing neovim (sudo apt-get remove neovim), you'll have probably no other vims in your system. Then you can normally instal vim via sudo apt-get install vim.