Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
install VI and remove VIM
install VI and remove VIM
I want remove VIM and install VI , what I must do ?
life is linux and debian is live
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: install VI and remove VIM
Code: Select all
# apt-get purge vim
deadbang
Re: install VI and remove VIM
I think it's actually tiny-vimvi should already be installed.
You will only get a "vi" clone in Linux.
Jessie/Xfce
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: install VI and remove VIM
This would depend on what version of Debian, if the OP is using Debian,
on my Wheezy, " vi " is the default, that came with the installation, and runs s "vim" but,
if I enter "vim",
But interesting, on Jessie I typed "vi" at the prompt, and got this:
[quote] Vim-vi improved , running in vi compatable mode [/code]
and if I type in "vi" I get the "command not found,...
I don't know that it would be wise to remove "Vim" from Jessie, the vi editor might not run.
H_O_A_S know more about this then me, my main point is we don't know what version
of debian the OP is using ,(or at least I don't) since they did not include that info.
And it appears, the vi is default in wheezy, but vim is being used in Jessie.
on my Wheezy, " vi " is the default, that came with the installation, and runs s "vim" but,
if I enter "vim",
Code: Select all
$ vim
bash: vim: command not found
[quote] Vim-vi improved , running in vi compatable mode [/code]
and if I type in "vi" I get the "command not found,...
I don't know that it would be wise to remove "Vim" from Jessie, the vi editor might not run.
H_O_A_S know more about this then me, my main point is we don't know what version
of debian the OP is using ,(or at least I don't) since they did not include that info.
And it appears, the vi is default in wheezy, but vim is being used in Jessie.
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: install VI and remove VIM
@Garry -- what is the output of:
In your systems?
I'm in OpenBSD atm so I can't check...
Code: Select all
ls -l $(which vi)
I'm in OpenBSD atm so I can't check...
deadbang
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: install VI and remove VIM
This the output: On the Jessie
Code: Select all
garry@debian8:~$ ls -l $(which vi)
lrwxrwxrwx 1 root root 20 Jun 6 20:04 /usr/bin/vi -> /etc/alternatives/vi
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: install VI and remove VIM
Hmmm....
What happens if you:
What choices does it give you?
What happens if you:
Code: Select all
# update-alternatives --config vi
deadbang
Re: install VI and remove VIM
when I run this commad
I see this
Code: Select all
ls -l $(which vi)
Code: Select all
root@debian-mfaridi:/home/mostafa# ls -l $(which vi)
lrwxrwxrwx 1 root root 20 May 13 10:32 /usr/bin/vi -> /etc/alternatives/vi
life is linux and debian is live
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: install VI and remove VIM
interesting :
The command "vim" will not work, "vi" does
and here is what the editer says:
Code: Select all
garry@debian8:~$ update-alternatives --config vi
There is only one alternative in link group vi (providing /usr/bin/vi): /usr/bin/vim.tiny
Nothing to configure.
garry@debian8:~$
Code: Select all
garry@debian8:~$ vi
garry@debian8:~$ vim
bash: vim: command not found
Code: Select all
VIM - Vi IMproved
~
~ version 7.4.576
~ by Bram Moolenaar et al.
~ Modified by pkg-vim-maintainers@lists.alioth.debian.org
~ Vim is open source and freely distributable
~
~ Sponsor Vim development!
~ type :help sponsor<Enter> for information
~
~ type :q<Enter> to exit
~ type :help<Enter> or <F1> for on-line help
~ type :help version7<Enter> for version info
~
~ Running in Vi compatible mode
~ type :set nocp<Enter> for Vim defaults
~ type :help cp-default<Enter> for info on this
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: install VI and remove VIM
^ So in jessie, vim.tiny is used for `vi` & vim proper is needed for `vim`
Therefore: @OP -- my original command will do what you want (ie, remove vim and leave vim.tiny as a `vi` substitute).
The situation is similar to /bin/sh -- this is provided by DASH (in Debian) or BASH (other distributions) in GNU/Linux but the BSDs get the "real thing"...
BSD rocks!
EDIT: Try nvi -- this is a clone of the original BSD vi editor.
Therefore: @OP -- my original command will do what you want (ie, remove vim and leave vim.tiny as a `vi` substitute).
The situation is similar to /bin/sh -- this is provided by DASH (in Debian) or BASH (other distributions) in GNU/Linux but the BSDs get the "real thing"...
BSD rocks!
EDIT: Try nvi -- this is a clone of the original BSD vi editor.
deadbang
Re: install VI and remove VIM
"vi" is just an alias to the vi clone.GarryRicketson wrote:This would depend on what version of Debian, if the OP is using Debian,
on my Wheezy, " vi " is the default, that came with the installation, and runs s "vim" but,
if I enter "vim",Code: Select all
$ vim bash: vim: command not found
Try entering vim-gtk, or vim-gnome
The original UNIX visual editor "vi" was closed source, so clones were created. Just pick the one you want.
If you are looking for one that is closest to the original UNIX visual editor "vi", then nvi would be it.
Here are some of the others.
nvi
elvis
vile
vim
Jessie/Xfce
Re: install VI and remove VIM
Most likely you have nvi.Head_on_a_Stick wrote: BSDs get the "real thing"...
BSD rocks!
That's what NetBSD has.
Edit: Actually OpenBSD uses bvi. bvi-1.4.0 – binary visual display editor, based on vi
Jessie/Xfce
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: install VI and remove VIM
All are the real thing. They are based on the original closed source visual editor called vi.Head_on_a_Stick wrote:^ Ah, thank you.
I'm still pretty n00b with the BSDs...
Personally I like vim (vi improved) vim-gtk. Lots of nice features.
However I just use the default nvi on NetBSD.
Jessie/Xfce