病原体对我不起作用。我正在遵循 Adam Lowe 发布的提示here http://www.adamlowe.me/2009/12/vim-destroys-all-other-rails-editors.html(还有更多)没有任何成功......
我的 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/*
:
.vim/autoload:
pathogen.vim
.vim/bundle:
nerdcommenter/ vim-haml/ vim-surround/
vim-endwise/ vim-rails/ vim-vividchalk/
捆绑包中的所有插件都是通过将它们从 GitHub 克隆到捆绑包目录中来安装的。
我尝试过病原体 1.1 和 1.2,甚至 GitHub 上的最新版本,但没有任何结果。 Vividchalk、Vim-rails 和 nerdcommenter 无法工作。我对其他插头的经验很少,所以我不确定它们,但我想它们也不起作用。
我使用的是ArchLinux,vim 7.2.385-1(不是最新的,因为最新的需要我安装ruby1.9,但它仍然是7.2)。它是通过 pacman - ArchLinux 包管理器安装的。除了使用病原体之外,没有以其他方式安装 vim 插件(我什至通过清理重新安装了 vim 包)/usr/share/vim
).
我究竟做错了什么?
EDIT:
-
/etc/vimrc
http://hpaste.org/fastcgi/hpaste.fcgi/view?id=29685#a29685 http://hpaste.org/fastcgi/hpaste.fcgi/view?id=29685#a29685
-
/usr/share/vim/vimfiles/archlinux.vim
http://hpaste.org/fastcgi/hpaste.fcgi/view?id=29686#a29686 http://hpaste.org/fastcgi/hpaste.fcgi/view?id=29686#a29686
这似乎是某些发行版设置中由“系统”vimrc 引起的常见问题filetype on
在设置病原体之前。因此,将其关闭并再次打开会强制插件正确加载:
call pathogen#runtime_append_all_bundles()
filetype off
syntax on
filetype plugin indent on
更多信息here http://blog.darevay.com/2010/10/a-brief-note-on-pathogen-for-vim/.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)