I attempted to install Snipmate in vim via Pathogen, by:

cd ~/Dropbox/vim/bundle
git clone https://github.com/garbas/vim-snipmate
cd vim-snipmate
git clone https://github.com/honza/vim-snippets.git

(My vim repository is in Dropbox, with my ~/.vimrc reading:

set runtimepath+=~/Dropbox/vim
source ~/Dropbox/vim/vimrc.vim

)

However nothing happens when I press tab. I'm not sure what I'm doing wrong here? Based on other blogs/questions, I have already tried moving the snippets directory to ~/.vim/ and other locations, but to no avail. I also have "filetype plugin on". So I'm pretty stumped. Am I being stupid here?

Thanks!

有帮助吗?

解决方案

SnipMate makes use of the after directory to define its mappings (to ensure that no other plugin overrides them). Therefore, you need to add that directory hierarchy to 'runtimepath', too:

set runtimepath+=~/Dropbox/vim,~/Dropbox/vim/after
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top