vim

Vram lamsokvr at xprt.net
Tue Nov 9 23:12:34 UTC 2004


On Tue, 2004-11-09 at 16:01 +0100, Wouter Eerdekens wrote:
> On Tue, Nov 09, 2004 at 06:40:06AM -0800, Vram wrote:
> > vram at ubuntu:~ $ sudo apt-get install --reinstall vim
> > Password:
> > Reading Package Lists... Done
> > Building Dependency Tree... Done
> > 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not
> > upgraded.
> > Need to get 680kB of archives.
> > After unpacking 0B of additional disk space will be used.
> > Do you want to continue? [Y/n] y
> > Get:1 http://archive.ubuntu.com warty/main vim 1:6.3-025+1ubuntu2
> > [680kB]
> > Fetched 680kB in 4m19s (2617B/s)
> > 
> > Preconfiguring packages ...
> > (Reading database ... 92984 files and directories currently installed.)
> > Preparing to replace vim 1:6.3-025+1ubuntu2 (using .../vim_1%3a6.3-025
> > +1ubuntu2_i386.deb) ...
> > Unpacking replacement vim ...
> > Setting up vim (6.3-025+1ubuntu2) ...
> > 
> > vram at ubuntu:~ $ which vim
> > vram at ubuntu:~ $ ls -l /usr/bin/vim
> > ls: /usr/bin/vim: No such file or directory
> > vram at ubuntu:~ $
> 
> That's strange. Could you please post the output of the commands
> 
> dpkg --contents /var/cache/apt/archives/vim_1%3a6.3-025+1ubuntu2_i386.deb
> 
> (This command shows what's effectively in the packages)
> 
> and
> 
> dpkg -L vim
> 
> (This command shows the files installed by the package).
> 
> Run on my system (warty on an iBook, so powerpc arch, not i386)
> I get the following output (last command and first 10 lines of the
> output only):
> 
> we at ubuntu:~$ dpkg -L vim|head
> /.
> /usr
> /usr/bin
> /usr/bin/vim
> diverted by vim-gnome to: /usr/bin/vim.org
> /usr/bin/helpztags
> /usr/bin/vimtutor
> /usr/bin/xxd
> /usr/share
> /usr/share/man
> we at ubuntu:~$
> 
> This shows that the file /usr/bin/vim, from the package 'vim' was
> renamed to /usr/bin/vim.org by the install process of the package
> vim-gnome, which also contains a file called /usr/bin/vim (but compiled
> with GUI support)
> 
> Wouter

> @ubuntu:/etc/alternatives $ dpkg --contents /var/cache/apt/archives/vim_1%3a6.3-025+1ubuntu2_i386.deb  | grep vim
-rwxr-xr-x root/root   1037752 2004-10-07 17:44:32 ./usr/bin/vim
-rwxr-xr-x root/root      1600 2004-10-07 17:44:32 ./usr/bin/vimtutor
-rw-r--r-- root/root       698 2004-10-07
17:44:29 ./usr/share/man/man1/vimdiff.1.gz
-rw-r--r-- root/root       800 2004-10-07
17:44:29 ./usr/share/man/man1/evim.1.gz
-rw-r--r-- root/root      5349 2004-10-07
17:44:29 ./usr/share/man/man1/vim.1.gz
-rw-r--r-- root/root       677 2004-10-07
17:44:29 ./usr/share/man/man1/vimtutor.1.gz
drwxr-xr-x root/root         0 2004-10-07 17:44:32 ./usr/share/bug/vim/
-rw-r--r-- root/root       114 2004-10-07
17:44:32 ./usr/share/bug/vim/presubj
drwxr-xr-x root/root         0 2004-10-07 17:44:41 ./usr/share/doc/vim/
-rw-r--r-- root/root     61123 2004-10-07
17:39:19 ./usr/share/doc/vim/FAQ.gz
-rw-r--r-- root/root      2416 2004-10-07
17:39:19 ./usr/share/doc/vim/vim-policy.txt.gz
-rw-r--r-- root/root       447 2004-10-07
17:39:19 ./usr/share/doc/vim/README.Debian
-rw-r--r-- root/root       236 2004-10-07
17:39:19 ./usr/share/doc/vim/TODO.Debian
-rw-r--r-- root/root      5299 2004-10-07
17:39:19 ./usr/share/doc/vim/copyright
-rw-r--r-- root/root      1393 2004-10-07
17:39:19 ./usr/share/doc/vim/README.gz
-rw-r--r-- root/root     43320 2004-10-07
17:39:19 ./usr/share/doc/vim/changelog.Debian.gz
-rw-r--r-- root/root       781 2004-10-07
17:39:19 ./usr/share/lintian/overrides/vim
-rw-r--r-- root/root      1322 2004-10-07
17:39:19 ./usr/X11R6/include/X11/pixmaps/vim.xpm
-rw-r--r-- root/root       211 2004-10-07 17:39:19 ./usr/lib/menu/vim
-rw-r--r-- root/root       148 2004-10-07
17:39:19 ./usr/lib/mime/packages/vim
drwxr-xr-x root/root         0 2004-10-07 17:44:34 ./etc/vim/
-rw-r--r-- root/root      2884 2004-10-07 17:39:19 ./etc/vim/vimrc
lrwxrwxrwx root/root         0 2004-10-07 17:44:34 ./usr/bin/vimdiff ->
vim
lrwxrwxrwx root/root         0 2004-10-07 17:44:34 ./usr/bin/rview ->
vim
lrwxrwxrwx root/root         0 2004-10-07 17:44:34 ./usr/bin/evim -> vim
lrwxrwxrwx root/root         0 2004-10-07 17:44:34 ./usr/bin/eview ->
vim
lrwxrwxrwx root/root         0 2004-10-07 17:44:34 ./usr/bin/rvim -> vim
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/ex.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/gview.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/rgview.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/gvimdiff.1.gz -> vimdiff.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/rvim.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/view.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/eview.1.gz -> evim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/rview.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/gvim.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:41 ./usr/share/man/man1/rgvim.1.gz -> vim.1.gz
lrwxrwxrwx root/root         0 2004-10-07
17:44:34 ./usr/share/doc/vim/changelog
-> ../../vim/vim63/doc/version6.txt
vram at ubuntu:/etc/alternatives $



vram at ubuntu:/etc/alternatives $ dpkg -L vim | grep vim
/usr/bin/vim
diverted by kvim to: /usr/bin/vim.org
/usr/bin/vimtutor
/usr/share/man/man1/vimdiff.1.gz
/usr/share/man/man1/evim.1.gz
/usr/share/man/man1/vim.1.gz
/usr/share/man/man1/vimtutor.1.gz
/usr/share/bug/vim
/usr/share/bug/vim/presubj
/usr/share/doc/vim
/usr/share/doc/vim/FAQ.gz
/usr/share/doc/vim/vim-policy.txt.gz
/usr/share/doc/vim/README.Debian
/usr/share/doc/vim/TODO.Debian
/usr/share/doc/vim/copyright
/usr/share/doc/vim/README.gz
/usr/share/doc/vim/changelog.Debian.gz
/usr/share/lintian/overrides/vim
/usr/X11R6/include/X11/pixmaps/vim.xpm
/usr/lib/menu/vim
/usr/lib/mime/packages/vim
/etc/vim
/etc/vim/vimrc
/usr/bin/vimdiff
/usr/bin/evim
/usr/bin/rvim
/usr/share/man/man1/gvimdiff.1.gz
/usr/share/man/man1/rvim.1.gz
/usr/share/man/man1/gvim.1.gz
/usr/share/man/man1/rgvim.1.gz
/usr/share/doc/vim/changelog

You are correct...

/usr/bin/vim
diverted by kvim to: /usr/bin/vim.org


So if I invoke vim.org... I get vim..

I am going to rename this back to vim


Thanks to everyone who responded..


vram




> 





More information about the ubuntu-users mailing list