简体   繁体   English

使用Pathogen vim安装Snipmate

[英]Installing Snipmate with Pathogen vim

I attempted to install Snipmate in vim via Pathogen, by: 我试图通过Pathogen在vim中安装Snipmate,方法是:

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: (我的vim存储库在Dropbox中,我的〜/ .vimrc读为:

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

)

However nothing happens when I press tab. 但是,当我按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. 根据其他博客/问题,我已经尝试将摘要目录移至〜/ .vim /和其他位置,但无济于事。 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). SnipMate利用after目录定义其映射(以确保没有其他插件覆盖它们)。 Therefore, you need to add that directory hierarchy to 'runtimepath' , too: 因此,您还需要将该目录层次结构添加到'runtimepath'

set runtimepath+=~/Dropbox/vim,~/Dropbox/vim/after

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM