Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format
PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:hypathie:tutos:vim-ide-python [09/12/2015 23:09] Hypathie [Configurer Vim pour Python] |
utilisateurs:hypathie:tutos:vim-ide-python [12/01/2016 10:01] Hypathie [Installer VIM IDE pour python] |
||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
===== Installer VIM IDE pour python ===== | ===== Installer VIM IDE pour python ===== | ||
- | === Prérequis=== | ||
- | * Pour utiliser vim avec python3 | + | ===Introduction === |
- | + | ||
- | <code root>apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \ | + | |
- | libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ | + | |
- | libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | + | |
- | ruby-dev mercurial</code> | + | |
- | + | ||
- | + | ||
- | ===On supprime les versions vim existantes sur le système== | + | |
- | + | ||
- | * En effet, | + | |
+ | * Si vim est déjà installé il n'est peut être pas configuré avec un interpréteur pour python ou python 3 : | ||
<code user> | <code user> | ||
vim --version | vim --version | ||
Ligne 50: | Ligne 40: | ||
+comments +langmap +printer +visual | +comments +langmap +printer +visual | ||
+conceal +libcall +profile +visualextra | +conceal +libcall +profile +visualextra | ||
- | +cryptv +linebreak +python +viminfo | + | +cryptv +linebreak -python +viminfo |
+cscope +lispindent -python3 +vreplace | +cscope +lispindent -python3 +vreplace | ||
</code> | </code> | ||
- | => ''+python -python3'' :-/ | + | => ''-python -python3'' :-/ |
+ | |||
+ | * Si l'on veut repartir à neuf : | ||
+ | |||
+ | <code root>dpkg --status vim</code> | ||
+ | <code retour> | ||
+ | Package: vim | ||
+ | Status: install ok installed | ||
+ | Priority: optional | ||
+ | Section: editors | ||
+ | Installed-Size: 2233 | ||
+ | Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> | ||
+ | Architecture: amd64 | ||
+ | Version: 2:7.4.488-7 | ||
+ | Provides: editor | ||
+ | Depends: vim-common (= 2:7.4.488-7), vim-runtime (= 2:7.4.488-7), libacl1 (>= 2.2.51-8), libc6 (>= 2.15), libgpm2 (>= 1.20.4), libselinux1 (>= 1.32), libtinfo5 | ||
+ | Suggests: ctags, vim-doc, vim-scripts | ||
+ | Description: Vi IMproved - enhanced vi editor | ||
+ | Vim is an almost compatible version of the UNIX editor Vi. | ||
+ | <...> | ||
+ | </code> | ||
+ | |||
+ | On supprime la version installée et ses dépendances | ||
+ | |||
+ | <code root>apt-get remove vim vim-common vim-runtime libacl1 libc6 libselinux1 libtinfo5</code> | ||
+ | |||
+ | |||
+ | * Sur un système Jessie tout neuf la commande : ''apt-get install vim'' | ||
+ | |||
+ | installera les paquets ''vim-doc'' et ''vim-scripts''. Il est suggéré d'installer aussi ''vim-common'' et ''vim-runtime''... | ||
+ | |||
+ | Allons-y : | ||
+ | |||
+ | <code root>apt-get install vim vim-common vim-runtime</code> | ||
+ | |||
+ | |||
+ | |||
+ | === Prérequis=== | ||
+ | |||
+ | * Pour utiliser vim avec python3 | ||
+ | |||
+ | <code root>apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \ | ||
+ | libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ | ||
+ | libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | ||
+ | ruby-dev mercurial</code> | ||
+ | |||
+ | |||
+ | ===On supprime les versions vim existantes sur le système== | ||
+ | |||
- | <code root>apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common</code> | ||
===On récupère vim à la source et on le compile avec l'option python3=== | ===On récupère vim à la source et on le compile avec l'option python3=== | ||
Ligne 99: | Ligne 137: | ||
===Configurer vim=== | ===Configurer vim=== | ||
+ | |||
+ | * On installe git | ||
+ | <code root>apt-get install git</code> | ||
* On télécharge ce script | * On télécharge ce script |