【问题标题】:perlomni.vim installation fail using pathogen or vundleperlomni.vim 使用病原体或 vundle 安装失败
【发布时间】:2013-07-22 16:51:17
【问题描述】:

我很想安装 perlomni.vim,以便可以在 gvim 窗口中使用自动功能查找。

我已尝试使用 pathhogen 和 vundle 来尝试配置此捆绑包。

我认为我遇到的问题是我如何安装 perlomni.vim

我设置了一个目录 ~/.vim/bundle/vundle 和 ~/.vim/bundle

致病途径

cd ~/.vim/bundle
git clone https://github.com/c9s/perlomni.vim.git
cd perlomni.v
make install

然后由于我在 tcsh shell 中运行,我将路径变量设置为 设置路径=($path\:$home/.vim/bin)

我是否应该尝试在 .vim/bundle 目录下安装它.....当我运行 make install 命令时,它会尝试将其安装到 .vim/ 目录中,并将它使用的所有 .vim 文件放入.vim/ftplugin .vim/plugin .vim/bin 目录.......所以也许我的 .vimrc 文件中没有其他正确的设置来包含以这种方式安装的包。

VUNDLE 方式 我已经安装了 vundle,这是我的 .vimrc 的 sn-p

set nocompatible
filetype off

call pathogen#incubate()
execute pathogen#infect()

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

"Required Bundel Statement
Bundle 'gmarik/vundle'

"User Installed Bundles
Bundle 'neocomplcache/neocomplcache.vim'
Bundle 'perlomni/perlomni.vim'

" Non Git Hub Bundles
"Bundle 'git://git.wincent.com/command-t.git'
" Bundles on Local Machine
Bundle '/usr/share/vim/vim70/ftplugin/perl.vim'

filetype plugin indent on
filetype on
syntax on

【问题讨论】:

  • 你忘了说:什么不起作用?
  • 安装失败。当我用我的 perl 类和 scipts 打开一个 gvim 窗口时,perlomni.vim 无法使用它们。
  • “它不起作用。”不多说。安装失败怎么办?脚本没有加载吗?有错误吗?当您按下CTRL-X CTRL-O 时会发生什么?如果您不说出问题所在,我们将无法帮助您。
  • 脚本未加载......当我按下 CTRL-X 时,它进入 x 模式,就是这样......在 CTRL-O 中没有任何反应......跨度>
  • @user2479059 它在自述文件中说,如果您使用病原体,则不需要执行“make install”。克隆后该插件对我有用。

标签: vim plugins pathogen ftplugin vundle


【解决方案1】:

有了这个 vimrc,pathogen 和 perlomni.vim 在 bundle 目录 <C-X><C-O> 中执行omnicompletion。

set nocompatible
filetype plugin indent on
syntax on

call pathogen#infect()

没有看到你实际的 vimrc,我不知道问题是什么,但这对我有用。

【讨论】:

  • 你是如何为它设置你的omnifunc变量的?
  • @user2479059 我没有为我设置插件。
  • 我一直收到错误....当我尝试使用 perlomni.vim 时未设置 omnifunc
  • @user2479059 我不知道。等别人我猜
  • 这是我的 vim rc set nocompatible filetype off call pathogen#incubate() call pathogen#infect() set rtp+=~/.vim/bundle/vundle/ call vundle#rc() "Required Bundel Statement Bundle 'gmarik/vundle' "User Installed Bundles Bundle 'neocomplcache/neocomplcache.vim' Bundle 'perlomni.vim' " Non Git Hub Bundles "Bundle 'git://git.wincent.com/command-t.git' " Bundles on Local Machine Bundle '/usr/share/vim/vim70/ftplugin/perl.vim' filetype plugin indent on filetype on syntax on let g:neocomplcache_enable_at_startup = 1
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-10-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多