mercredi 25 novembre 2009

Vimtutor : un tutoriel pour apprendre à utiliser Vim

Vimtutor est sensé être pré-installé avec votre distributeur linux, mais au moment où je l'ai lancé, voici le message d'erreur

malagasy@malagasy-laptop:~$ vimtutor
The program 'vimtutor' is currently not installed. You can install it by typing:
sudo apt-get install vim-runtime
bash: vimtutor: command not found

Evidement, le premier réflexe est d'installer ce qu'on me demande, c'est à dire vim-runtime. Manque de bol, le tutoriel ne veut toujours pas se lancer. J'ai ensuite essayé d'installer vim-common, mais ce paquet était déjà installé à la base.
malagasy@malagasy-laptop:~$ sudo apt-get install vim-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
vim-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
malagasy@malagasy-laptop:~$ vimtutor
bash: /usr/bin/vimtutor: No such file or directory

Du coup, je me suis demandé s'il ne fallait pas supprimer ces deux paquets, puis de n'installer que vim-common.
malagasy@malagasy-laptop:~$ sudo apt-get remove vim-runtime
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
vim-runtime
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 23.4MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 130108 files and directories currently installed.)
Removing vim-runtime ...
Removing `diversion of /usr/share/vim/vim71/doc/help.txt to /usr/share/vim/vim71/doc/help.txt.vim-tiny by vim-runtime'
Removing `diversion of /usr/share/vim/vim71/doc/tags to /usr/share/vim/vim71/doc/tags.vim-tiny by vim-runtime'
Processing triggers for man-db ...
malagasy@malagasy-laptop:~$ sudo apt-get remove vim-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ubuntu-minimal vim-common vim-tiny
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 1343kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 128681 files and directories currently installed.)
Removing ubuntu-minimal ...
Removing vim-tiny ...
Removing vim-common ...
Processing triggers for man-db ...
malagasy@malagasy-laptop:~$ vimtutor
bash: /usr/bin/vimtutor: No such file or directory
malagasy@malagasy-laptop:~$ sudo apt-get install vim-common
Reading package lists... Done
Building dependency tree
Reading state information... Done

The following extra packages will be installed:
vim vim-runtime

Suggested packages:
ctags vim-doc vim-scripts

The following NEW packages will be installed:
vim vim-common vim-runtime

0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1046kB/6463kB of archives.
After this operation, 25.6MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://fr.archive.ubuntu.com intrepid-security/main vim-common 1:7.1.314-3ubuntu3.1 [201kB]
Get:2 http://fr.archive.ubuntu.com intrepid-security/main vim 1:7.1.314-3ubuntu3.1 [845kB]
Fetched 1046kB in 14s (70.5kB/s)
Selecting previously deselected package vim-common.
(Reading database ... 128584 files and directories currently installed.)
Unpacking vim-common (from .../vim-common_1%3a7.1.314-3ubuntu3.1_i386.deb) ...
Selecting previously deselected package vim-runtime.
Unpacking vim-runtime (from .../vim-runtime_1%3a7.1.314-3ubuntu3.1_all.deb) ...
Adding `diversion of /usr/share/vim/vim71/doc/help.txt to /usr/share/vim/vim71/doc/help.txt.vim-tiny by vim-runtime'
Adding `diversion of /usr/share/vim/vim71/doc/tags to /usr/share/vim/vim71/doc/tags.vim-tiny by vim-runtime'
Selecting previously deselected package vim.
Unpacking vim (from .../vim_1%3a7.1.314-3ubuntu3.1_i386.deb) ...
Processing triggers for man-db ...
Setting up vim-common (1:7.1.314-3ubuntu3.1) ...

Setting up vim-runtime (1:7.1.314-3ubuntu3.1) ...
Processing /usr/share/vim/addons/doc

Setting up vim (1:7.1.314-3ubuntu3.1) ...


En réinstallant le paquet vim-common, vim et vim-runtime ont été ré-installé automatiquement. Et maintenant, tout va bien.
malagasy@malagasy-laptop:~$ vimtutor



Source :
- Vim l'éditeur de texte du programmeur

Aucun commentaire: