Vim:无法使病原体装载 [英] Vim: Can't get pathogen to load bundles

查看:98
本文介绍了Vim:无法使病原体装载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Stackoverflow和github等上阅读了有关此问题的其他五个问题,但仍无法解决此问题,并且在这一点上完全迷失了.

I've read five other questions about this on Stackoverflow, and github and so on, but have not been able to solve this problem, and am totally lost at this point.

我使用的是Vim 7.3的Ubuntu 11.10.

I'm on Ubuntu 11.10 with Vim 7.3.

这是我的.vimrc

Here's my .vimrc

set nocp
call pathogen#infect()
syntax on
filetype plugin indent on
call pathogen#infect()
colorscheme xoria256
set rnu
set expandtab
set tabstop=2
set shiftwidth=2
set cindent
set virtualedit=all

pathogen.vim在〜/.vim/autoload中,而我在〜/.vim/bundle/

pathogen.vim is in ~/.vim/autoload and I've got vim-jade and vim-surround in ~/.vim/bundle/

当我运行vim index.jade时,我没有收到任何错误,我只是没有语法高亮显示,所以我不能使用vim Surround命令.

I don't get any errors when I run vim index.jade I just don't have syntax highlighting and I can't use the vim surround commands.

任何帮助都会动摇!我已经在这里呆了几个小时了.

Any help would rock! I've been at this for a few hours.

推荐答案

  1. 使用您的插件名称在捆绑包中创建一个目录

  1. Create a directory in bundle with name of your plugin

mkdir〜/.vim/bundle/surround/

mkdir ~/.vim/bundle/surround/

将插件解压缩到您创建的目录中.

Unzip the plugin to the directory, you created.

cp〜/surround.zip〜/.vim/bundle/surround/ cd〜/.vim/bundle/surround/ 解压round.zip rm -rf Surround.zip

cp ~/surround.zip ~/.vim/bundle/surround/ cd ~/.vim/bundle/surround/ unzip surround.zip rm -rf surround.zip

将这些行添加到〜/.vimrc的开头

Add these lines to the beginning of the ~/.vimrc

执行病原体#infect() 语法开启 文件类型插件缩进

execute pathogen#infect() syntax on filetype plugin indent on

现在您将能够使用Surround.vim插件.

Now you will able to use surround.vim plugin.

这篇关于Vim:无法使病原体装载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆