LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2012, 09:07 PM   #1
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Wheezy/Jessie Stable, Windoze 7
Posts: 598

Rep: Reputation: 36
Cannot deinstall the VI editor


I'm finally getting rid of the VI editor, I am tired of it popping up everywhere as the standard editor.
But it is harder to done than said.

After deinstalling VIM, VI is still there.

I cannot see any package that I can still deinstall.

which vi
/usr/bin/vi

but when I want to see which package this file belongs to, I get nothing.

dpkg -S /usr/bin/vi
dpkg: /usr/bin/vi not found.

but the file is there and I can execute it just fine.

How can I deinstall VI? Which package does it belong to?

This is on Debian Squeeze (Debian 6)

Thanks,

Markus
 
Old 06-12-2012, 11:39 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
No need to remove it.

As root:
Code:
update-alternatives --config editor
and pick the editor you want to use
 
1 members found this post helpful.
Old 06-14-2012, 05:04 PM   #3
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Wheezy/Jessie Stable, Windoze 7
Posts: 598

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by craigevil View Post
No need to remove it.

As root:
Code:
update-alternatives --config editor
and pick the editor you want to use
Thanks for pointing that out. Unfortunately, this is not consitent. The settings don't seem to get used everywhere. When trying to edit a crontab for an user, it still defaults back to VI, so I need to remove it and set a symbolic link from my favorite editor to make sure it gets used ALWAYS.
 
Old 06-14-2012, 05:45 PM   #4
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
If it is not consistant among user accounts have checked any .bashrc files for aliasses to vi or even if it contains a line that say
Code:
export EDITOR=vi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Deinstall Problem Quantumstate Linux - Desktop 8 05-06-2011 12:35 PM
How can I deinstall software on Kubuntu 5.10 secret_force Linux - Newbie 2 12-11-2006 05:11 AM
Disk full errors, even when I try and deinstall JesusFreak84 Slackware 4 01-09-2006 10:41 PM
Snort Make deinstall Atrocity Slackware 12 06-13-2005 01:49 PM
Running 'make deinstall' question satimis *BSD 7 06-07-2004 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration