病原体不加载插件 [英] Pathogen does not load plugins

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

问题描述

病原体对我不起作用.我正在关注 此处(以及更多)没有任何成功...

Pathogen does not work for me. I am following Adam Lowe's hints posted here (and few more) without any success...

我的vimrc:

filetype off
call pathogen#runtime_append_all_bundles()

filetype plugin indent on
set nocompatible
syntax on
set tabstop=2
set smarttab
set shiftwidth=2
set autoindent
set expandtab
set number
colorscheme darkblue

.vim 的内容 - ls .vim/*:

Contents of .vim - ls .vim/*:

.vim/autoload:
pathogen.vim

.vim/bundle:
nerdcommenter/  vim-haml/   vim-surround/
vim-endwise/    vim-rails/  vim-vividchalk/

bundle 中的所有插件都是通过从 GitHub 将它们克隆到 bundle 目录中来安装的.

All plugins in bundle were installed by cloning them from GitHub into bundle directory.

我已经尝试过病原体 1.1 和 1.2,甚至是来自 GitHub 的最新版本,但没有任何结果.Vividchalk、Vim-rails 和 nerdcommenter 不起作用.我对其他插头的经验很少,所以我不确定它们,但我想它们也不起作用.

I have tried with pathogen 1.1 and 1.2 and even the latest from GitHub without any result. Vividchalk, Vim-rails and nerdcommenter are not working. I have very little experience with other plugs so I am not sure about them, but I suppose they are not working too.

我使用的是 ArchLinux,vim 7.2.385-1(不是最新的,因为最新的需要我安装 ruby​​1.9,但它仍然是 7.2).它是通过 pacman - ArchLinux 包管理器安装的.除了使用病原体之外,没有以其他方式安装 vim 插件(我什至通过清理 /usr/share/vim 重新安装了 vim 包).

I am using ArchLinux, vim 7.2.385-1 (not the latest because the latest requires me to install ruby1.9, but it is still 7.2). It has been installed via pacman - ArchLinux package manager. No vim plugins were installed the other way than using pathogen (I have even reinstalled vim package with cleaning /usr/share/vim).

我做错了什么?

推荐答案

这似乎是由某些发行版中的系统"vimrc 在设置病原体之前设置 filetype on 引起的常见问题.因此,将其关闭并再次打开会强制插件正确加载:

This seems to be common problem caused by the "system" vimrc in some distributions setting filetype on before you set up pathogen. So turning it off and back on again forces plugins to load correctly:

 call pathogen#runtime_append_all_bundles()
 filetype off
 syntax on
 filetype plugin indent on

更多信息这里.

这篇关于病原体不加载插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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