vim-tiny config problems, vim not found

Bug #342174 reported by maple03 on 2009-03-13
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: vim-tiny

Vim-tiny receives an error in configuration at start. I've just installed Ubuntu 9.04 Alpha 5 and updated it.

user@jaunty:~$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04

user@jaunty:~$ vim
The program 'vim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-gtk
 * vim-nox
Try: sudo apt-get install <selected package>
-bash: vim: command not found

user@jaunty:~$ whereis vim
vim: /usr/bin/vim.tiny /etc/vim /usr/share/vim /usr/share/man/man1/vim.1.gz

user@jaunty:~$ /usr/bin/vim.tiny
Error detected while processing /usr/share/vim/vimrc:
line 20:
E319: Sorry, the command is not available in this version: syntax on
Press ENTER or type command to continue

If I press ENTER the editor starts and it is ok.
The line 20 is:
syntax on

And if I disable it everything runs ok.

So vim.tiny is using /usr/share/vim/vimrc (/etc/vim/vimrc) and not /etc/vim/vimrc.tiny and not aliased to vim.

Related branches

Colin Watson (cjwatson) wrote :

I think the not-being-linked-to-vim bit is deliberate - it provides vi but not really vim. I'll fix the other part now, though.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vim - 2:7.2.079-1ubuntu5

---------------
vim (2:7.2.079-1ubuntu5) jaunty; urgency=low

  * Guard "syntax on" default so that it's only used if the syntax feature
    is available, since /etc/vim/vimrc is sometimes used by vim-tiny too
    (LP: #342174).

 -- Colin Watson <email address hidden> Thu, 19 Mar 2009 15:16:10 +0000

Changed in vim:
status: New → Fix Released
Colin Watson (cjwatson) wrote :

Indeed:

vim (2:7.2.049-1) unstable; urgency=low
[...]
  * [f7bfa57] Don't install vim alternatives for vim-tiny. vim-tiny is built
    to act like vi, so the vim alternative just causes more confusion than
    it's worth (by default).
[...]
 -- James Vega <email address hidden> Tue, 25 Nov 2008 23:38:38 -0500

maple03 (maple03) wrote :

Why vim.tiny is using /usr/share/vim/vimrc (that is linked to /etc/vim/vimrc) and not /etc/vim/vimrc.tiny?

Shahar Or (mightyiam) wrote :

Dear ones,

When nothing that provides vim is installed, one of the suggestions of command-not-found is to install tim-tiny. When vim-tiny is installed it does not provide the vim command.

Blessings,
Shahar

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers