Wie installiere ich snipMate?

735
Santosh Kumar

Ich habe snipMate.zip von vim.org heruntergeladen . Die Installationsanweisung besagt Folgendes:

  • entpacken Sie es und fügen Sie es in das .vimVerzeichnis ein.
  • Es sollte eine :filetype plugin on.vimrc-Datei geben

Ich habe beides gemacht, aber keiner der Schnipsel funktioniert. Dies ist das erste Mal, dass ich ein Plugin installiere.

0
Mir ist nicht klar, wie Sie es installiert haben. Sie haben geschrieben, dass Sie die Datei entpackt und * it * in Ihr .vim-Verzeichnis eingefügt haben. SnipMate.vim enthält mehrere Dateien in sieben Verzeichnissen. Sind Sie sicher, dass Sie alle Dateien in den richtigen Verzeichnissen haben? Es ist normalerweise am besten, eine Datei wie snipMate.zip zuerst in Ihr Verzeichnis ~ / .vim zu verschieben und sie dort zu entpacken. garyjohn vor 11 Jahren 0

1 Antwort auf die Frage

2
romainl

Did you put the snipMate directory that you get after unzipping directly inside ~/.vim? Like that: ~/.vim/snipMate?

It's its content that you have to put into ~/.vim:

.vim ├── after │   └── plugin │   └── snipMate.vim ├── autoload │   └── snipMate.vim ├── doc │   └── snipMate.txt ├── ftplugin │   └── html_snip_helper.vim ├── plugin │   └── snipMate.vim ├── snippets │   ├── autoit.snippets │   ├── cpp.snippets │   ├── c.snippets │   ├── html.snippets │   ├── javascript.snippets │   ├── java.snippets │   ├── mako.snippets │   ├── objc.snippets │   ├── perl.snippets │   ├── php.snippets │   ├── python.snippets │   ├── ruby.snippets │   ├── sh.snippets │   ├── _.snippets │   ├── snippet.snippets │   ├── tcl.snippets │   ├── tex.snippets │   ├── vim.snippets │   └── zsh.snippets └── syntax └── snippet.vim 

After that, put this line in your ~/.vimrc:

filetype plugin on 

and run this command in Vim to make the snipMate doc available:

:helptags ~/.vim/doc 

If you do all that, you should be able to read the snipMate doc, which you should do before anything else:

:help snipmate 

Good luck.

Du hattest Recht! Santosh Kumar vor 11 Jahren 0