<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.unscdf.org/index.php?action=history&amp;feed=atom&amp;title=Discussion%3AAuto-compl%C3%A9tion_C_%2FQt4_avec_Vim</id>
	<title>Discussion:Auto-complétion C /Qt4 avec Vim - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.unscdf.org/index.php?action=history&amp;feed=atom&amp;title=Discussion%3AAuto-compl%C3%A9tion_C_%2FQt4_avec_Vim"/>
	<link rel="alternate" type="text/html" href="https://wiki.unscdf.org/index.php?title=Discussion:Auto-compl%C3%A9tion_C_/Qt4_avec_Vim&amp;action=history"/>
	<updated>2026-05-14T15:06:43Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.unscdf.org/index.php?title=Discussion:Auto-compl%C3%A9tion_C_/Qt4_avec_Vim&amp;diff=50&amp;oldid=prev</id>
		<title>Remeh le 3 février 2011 à 13:26</title>
		<link rel="alternate" type="text/html" href="https://wiki.unscdf.org/index.php?title=Discussion:Auto-compl%C3%A9tion_C_/Qt4_avec_Vim&amp;diff=50&amp;oldid=prev"/>
		<updated>2011-02-03T13:26:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 3 février 2011 à 15:26&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Ligne 37 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 37 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Les créer :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Les créer :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cd &lt;/del&gt;~/.vim/tags/&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ctags -f &lt;/ins&gt;~/.vim/tags/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cpp &lt;/ins&gt;-R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ cpp_src&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ctags &lt;/del&gt;-R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-f cpp &lt;/del&gt;cpp_src&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Et enfin rajouter dans la configuration de Vim:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Et enfin rajouter dans la configuration de Vim:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Ligne 49 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 48 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Générer les ctags :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Générer les ctags :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ctags -R &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--sort=yes &lt;/del&gt;--c++-kinds=+p --fields=+iaS --extra=+q &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--language-force=C++ -f qt &lt;/del&gt;/usr/include/Qt/&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ctags &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-f ~/.vim/tags/qt &lt;/ins&gt;-R --c++-kinds=+p --fields=+iaS --extra=+q /usr/include/Qt/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Et rajouter dans la configuration de son Vim :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Et rajouter dans la configuration de son Vim :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Remeh</name></author>
	</entry>
	<entry>
		<id>https://wiki.unscdf.org/index.php?title=Discussion:Auto-compl%C3%A9tion_C_/Qt4_avec_Vim&amp;diff=49&amp;oldid=prev</id>
		<title>Remeh : Page créée avec « Vim est un éditeur de texte puissant. Afin de rendre encore plus complet et pratique, ce tutoriel va expliquer comment configurer la complétion automatique en C++ et plus p... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.unscdf.org/index.php?title=Discussion:Auto-compl%C3%A9tion_C_/Qt4_avec_Vim&amp;diff=49&amp;oldid=prev"/>
		<updated>2011-02-03T13:10:39Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « Vim est un éditeur de texte puissant. Afin de rendre encore plus complet et pratique, ce tutoriel va expliquer comment configurer la complétion automatique en C++ et plus p... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Vim est un éditeur de texte puissant. Afin de rendre encore plus complet et pratique, ce tutoriel va expliquer comment configurer la complétion automatique en C++ et plus particulièrement pour Qt4.&lt;br /&gt;
&lt;br /&gt;
Ce tutoriel est basé sur [http://vim.wikia.com/wiki/C%2B%2B_code_completion cet article].&lt;br /&gt;
&lt;br /&gt;
Les paquets nécessaires sont : vim, ctags&lt;br /&gt;
&lt;br /&gt;
=Configuration de Vim=&lt;br /&gt;
Votre fichier de configuration doit comporter les commandes suivantes :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set nocp&lt;br /&gt;
filetype plugin on&lt;br /&gt;
&amp;quot; Reconstruire les tags de son projet avec Ctrl-F12&lt;br /&gt;
map &amp;lt;C-F12&amp;gt; :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .&amp;lt;CR&amp;gt;&lt;br /&gt;
&amp;quot; OmniCppComplete&lt;br /&gt;
let OmniCpp_NamespaceSearch = 1&lt;br /&gt;
let OmniCpp_GlobalScopeSearch = 1&lt;br /&gt;
let OmniCpp_ShowAccess = 1&lt;br /&gt;
let OmniCpp_ShowPrototypeInAbbr = 1 &amp;quot; show function parameters&lt;br /&gt;
let OmniCpp_MayCompleteDot = 1 &amp;quot; autocomplete after .&lt;br /&gt;
let OmniCpp_MayCompleteArrow = 1 &amp;quot; autocomplete after -&amp;gt;&lt;br /&gt;
let OmniCpp_MayCompleteScope = 1 &amp;quot; autocomplete after ::&lt;br /&gt;
let OmniCpp_DefaultNamespaces = [&amp;quot;std&amp;quot;, &amp;quot;_GLIBCXX_STD&amp;quot;]&lt;br /&gt;
&amp;quot; gestion plus intelligente du popup&lt;br /&gt;
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif&lt;br /&gt;
set completeopt=menuone,menu,longest,preview&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Omnicppcomplete=&lt;br /&gt;
Il faut d&amp;#039;abord récupérer [http://www.vim.org/scripts/script.php?script_id=1520 Omnicppcomplete].&lt;br /&gt;
Pour son installation :&lt;br /&gt;
* Le dézipper dans son dossier ~/.vim&lt;br /&gt;
&lt;br /&gt;
=Tags C++=&lt;br /&gt;
Il faut ensuite télécharger les [http://www.vim.org/scripts/script.php?script_id=2358 stdc++ tags].&lt;br /&gt;
* D&amp;#039;abord créer un dossier ~/.vim/tags si inexistant&lt;br /&gt;
* Extraire le dossier &amp;lt;code&amp;gt;cpp_src&amp;lt;/code&amp;gt; dans le dossier &amp;lt;code&amp;gt;tags&amp;lt;/coed&amp;gt;&lt;br /&gt;
* Les créer :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/.vim/tags/&lt;br /&gt;
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f cpp cpp_src&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Et enfin rajouter dans la configuration de Vim:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set tags+=~/.vim/tags/cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tags Qt4=&lt;br /&gt;
Plus rien de très compliqué :&lt;br /&gt;
* Générer les ctags :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f qt /usr/include/Qt/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Et rajouter dans la configuration de son Vim :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set tags+=~/.vim/tags/qt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Remeh</name></author>
	</entry>
</feed>