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 [12/01/2016 10:55] Hypathie [Installer VIM IDE pour python] |
utilisateurs:hypathie:tutos:vim-ide-python [12/01/2016 16:24] Hypathie [Installer VIM IDE pour python 3] |
||
---|---|---|---|
Ligne 9: | Ligne 9: | ||
- | ===== Installer VIM IDE pour python ===== | + | ===== Installer VIM IDE pour python 3===== |
- | ===Introduction === | + | ====Introduction ==== |
* Si vim est déjà installé il n'est peut être pas configuré avec un interpréteur pour python ou python 3 : | * 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 | grep python |
</code> | </code> | ||
- | <code retour>VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:36:07) | + | <code retour>+cryptv +linebreak -python +viminfo |
- | Rustines incluses : 1-488, 576 | + | +cscope +lispindent -python3 +vreplace</code> |
- | Modifié par pkg-vim-maintainers@lists.alioth.debian.org | + | |
- | Compilé par jamessan@debian.org | + | |
- | Énorme version avec interface graphique GTK2. | + | |
- | Fonctionnalités incluses (+) ou non (-) : | + | |
- | +acl +farsi +mouse_netterm +syntax | + | |
- | +arabic +file_in_path +mouse_sgr +tag_binary | + | |
- | +autocmd +find_in_path -mouse_sysmouse +tag_old_static | + | |
- | +balloon_eval +float +mouse_urxvt -tag_any_white | + | |
- | +browse +folding +mouse_xterm +tcl | + | |
- | ++builtin_terms -footer +multi_byte +terminfo | + | |
- | +byte_offset +fork() +multi_lang +termresponse | + | |
- | +cindent +gettext -mzscheme +textobjects | + | |
- | +clientserver -hangul_input +netbeans_intg +title | + | |
- | +clipboard +iconv +path_extra +toolbar | + | |
- | +cmdline_compl +insert_expand +perl +user_commands | + | |
- | +cmdline_hist +jumplist +persistent_undo +vertsplit | + | |
- | +cmdline_info +keymap +postscript +virtualedit | + | |
- | +comments +langmap +printer +visual | + | |
- | +conceal +libcall +profile +visualextra | + | |
- | +cryptv +linebreak -python +viminfo | + | |
- | +cscope +lispindent -python3 +vreplace | + | |
- | </code> | + | |
=> ''-python -python3'' :-/ | => ''-python -python3'' :-/ | ||
Ligne 68: | Ligne 46: | ||
On supprime la version installée et ses dépendances | 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> | + | <code root>apt-get remove vim vim-common vim-runtime</code> |
Ligne 135: | Ligne 113: | ||
Et dans ce répertoire ''debian'' il y a un fichier ''rules'' : | Et dans ce répertoire ''debian'' il y a un fichier ''rules'' : | ||
- | <code user>ls -la rules</code> | + | <code user>ls -la debian/rules</code> |
<code retour>-rwxr-xr-x 1 hypathie hypathie 18825 mars 21 2015 rules</code> | <code retour>-rwxr-xr-x 1 hypathie hypathie 18825 mars 21 2015 rules</code> | ||
- | On édite rules pour remplacer les suivantes : | + | On édite rules pour obtenir les lignes suivantes : |
<code user>vim rules</code> | <code user>vim rules</code> | ||
- | <code> | ||
- | ALLINTERPFLAGS+=--enable-pythoninterp --with-python-config-dir=$(shell python-config --configdir) | ||
- | ALLINTERPFLAGS+=--disable-python3interp | ||
- | <code retour> | ||
- | Par celles-ci : | ||
<code> | <code> | ||
- | ALLINTERPFLAGS+=--enable-pythoninterp=dynamic --with-python-config-dir=$(shell python-config --configdir) | + | ALLINTERPFLAGS+=--enable-python3interp --with-python3-config-dir=$(shell python3-config --configdir) |
- | ALLINTERPFLAGS+=--enable-python3interp=dynamic --with-python3-config-dir=$(shell python3-config --configdir) | + | ALLINTERPFLAGS+=--disable-pythoninterp |
</code> | </code> | ||
Ligne 163: | Ligne 137: | ||
</code> | </code> | ||
+ | Enfin on compile le tout : | ||
+ | |||
+ | <code root>debuild binary</code> | ||
+ | |||
+ | Il fait ses tests ;-) ... | ||
+ | |||
+ | Et voilà ! | ||
- | ===Pour faire de vim son éditeur par défaut=== | + | <code user>vim --version</code> |
+ | <code retour></code> | ||
- | <code root>update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1</code> | ||
- | <code root>update-alternatives --set editor /usr/bin/vim</code> | ||
- | <code root>update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1</code> | ||
- | <code root>update-alternatives --set vi /usr/bin/vim</code> | ||
- | ===vim IDE pour python 3=== | + | ====vim IDE pour python 3==== |
* On installe git | * On installe git |