Pathogen SnipMate

I just installed pathogen on my ~/.vim and added a new command to run the packages

 :call pathogen#infect() 

I already add ~/.vim/bundle vim-surround and NERDtree to the folder, and everything works fine. However, when I tried to add garbas SnipMate, this did not work. Can anyone help to solve this problem? thanks

+6
source share
4 answers

I don’t know why, but when I remove the option

 set paste 

from my .vimrc snipmate pluging starts.

+2
source

I installed snimpmate after this guide without any problems John Andersons vim guide

 $ mkdir ~/.vim/ $ mkdir ~/.vim/{autoload,bundle} $ cd ~/.vim/ $ git init git submodule add https://github.com/msanders/snipmate.vim.git bundle/snipmate 

To create your own fragments

 $ mkdir ~/.vim/snippets $ vim ~/.vim/snippets/python.snippets 

Its example for pdb fragment

 snippet pdb import pdb; pdb.set_trace() 

Then you have to go well.

+16
source

The official way to distribute snipmate is vim-addon-manager . Like a pathogen, it puts each plugin in a separate folder, but it also does more, see the Documentation. I have not tried the pathogen at all, but I know what could be the reason here:

  • You forgot to install some dependencies. In this case, some errors are likely to be thrown.
  • Pathogen is not an after/ source (and vim will not do this for all elements and run-time elements, only for a few, as described in :h after-directory ). As far as I know, all the mappings are there.
+1
source

This is not obvious, but the snippets/ directory should be in .vim/ .

 $ mkdir ~/.vim/snippets $ vim ~/.vim/snippets/python.snippets 

At least one snippet:

 snippet pdb import pdb; pdb.set_trace() 
0
source

Source: https://habr.com/ru/post/896133/


All Articles