LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to delete old vim after new installation (https://www.linuxquestions.org/questions/linux-general-1/how-to-delete-old-vim-after-new-installation-30737/)

breadbin 09-19-2002 04:08 PM

how to delete old vim after new installation
 
I recently successfully installed vim 6.x and I still have vim 5.x, the 6.x version is in /usr/local/bin and if i just type vim, the older one pops up, can i just delete the old one and what do i need to delete exactly?:confused:

nxny 09-19-2002 07:58 PM

echo $PATH
which vim

Modify your .profile so that /usr/local/bin comes before /usr/bin (or wherever your 'which' command found your old vim) in your path.

The easiest thing to do would be to remove the current vim ( from 'which output'). Soft link your /usr/local/bin/vim in the same directory.

breadbin 09-20-2002 05:12 PM

voila - the long way around
 
thanks nxny
i solved it already the hard way, i deleted /usr/bin/vim and so when i type vim it only finds vim in /usr/local/bin. i hope it's ok to delete this file from /usr/bin.

acid_kewpie 09-20-2002 05:14 PM

how did you install it?if it was by rpm you should have upgraded it, and it would have been dealt with automatically.

breadbin 09-20-2002 05:58 PM

i used a tar file and compiled the source. you'd expect an rpm to be much easier but they're not really.


All times are GMT -5. The time now is 07:28 AM.