加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim – Pathogen不加载插件

发布时间:2020-12-15 16:32:09 所属栏目:安全 来源:网络整理
导读:Pathogen不为我工作。我跟着亚当Lowe的提示贴 here(和几个更多)没有任何成功… 我的vimrc: filetype offcall pathogen#runtime_append_all_bundles()filetype plugin indent onset nocompatiblesyntax onset tabstop=2set smarttabset shiftwidth=2set auto
Pathogen不为我工作。我跟着亚当Lowe的提示贴 here(和几个更多)没有任何成功…

我的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/

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

我试过病原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)。

我究竟做错了什么?

编辑:

> / etc / vimrc 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

这似乎是由“系统”vimrc在设置文件类型设置病原体之前的一些分布导致的常见问题。因此,关闭并重新启动它会强制插件正确加载:
call pathogen#runtime_append_all_bundles()
 filetype off
 syntax on
 filetype plugin indent on

更多信息here。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读