Installation des SingleCompile-Plugins in vim

Installation des SingleCompile-Plugins in vim

I'm using debian wheezy. I've downloaded SingleCompile plugin and I installed in vim 7.4. As there's no directory like ~/.vim I created one using mkdir ~/.vim and move the extracted plugins to ~/.vim/autoloads. I've edited the vimrc too:

filetype plugin on

and also added,

nmap <F9> :SCCompile<cr>
nmap <F10> :SCCompileRun<cr>

as instructed without any trailing space in vimrc.

Jetzt tritt beim Versuch, ein AC-Programm zu kompilieren, folgendes Problem auf:

E492: Not an editor command:SCCompile

Bitte helfen Sie mir dabei.

Antwort1

Der Befehl ist nicht verfügbar, da Sie die Installationsanweisungen nicht sorgfältig befolgt haben.

Alledie Verzeichnisse/Dateien im Archiv müssen in Ihr ~/.vimVerzeichnis:

SingleCompile-2.11.0/            |   ~/.vim/
                     autoload/   |          autoload/
                     doc/        >          doc/
                     plugin/     |          plugin/

Sobald die Einrichtung abgeschlossen ist, funktionieren der Befehl und die Zuordnung normal (sofern keine anderen, noch unbekannten Probleme auftreten).

verwandte Informationen