@User Hi,
I tried as per the suggestion but I got the following
sudo apt install gvim xterm
[sudo] password for rahul123:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gvim is a virtual package provided by:
vim-gtk 2:8.0.1453-1ubuntu1.8
vim-athena 2:8.0.1453-1ubuntu1.8
vim-gtk3 2:8.0.1453-1ubuntu1.8
You should explicitly select one to install.
E: Package 'gvim' has no installation candidate