2017-06-08 4 views
1

Ich habe das vim Plugin cpp_cppcheck heruntergeladen, aber habe es ~/.vim/ftplugin/c_cppcheck.vim kopiert es auch mit C-Dateien zu arbeiten. Es scheint gut zu funktionieren, aber ich möchte jetzt die Option --enable-all aktivieren, wie man auf der Shell kann. Im cppcheck Hilfefenster sagt folgendes:Wie stelle ich die cpp_cppckeck-Optionen ein?

g:cpp_cppcheck_options The command line options you want to pass to 
         Cppcheck. View your Cppcheck documentation for the 
         possible options. 

         Note that you shouldn't specify a template here! If 
         you do so, Vim won't be able to correctly parse the 
         output of Cppcheck for the quickfix-window. 

         The default value is empty (no options). 

aber :c_cppcheck_options noch :cpp_cppcheck_options macht mir nichts und wenn ich getroffen g Kopf des Dickdarms, scheint es nicht es in dem Befehl zu akzeptieren Linie eins unten. Wie kann ich die gewünschte Konfiguration einstellen?

Antwort

1

Dies ist eine globale Variable. Siehe :h :let

:let g:cpp_cppcheck_options = 'whatever' 
Verwandte Themen