【问题标题】:vim no editor command. :SyntasticInfovim 没有编辑器命令。 :综合信息
【发布时间】:2015-05-11 14:54:32
【问题描述】:

尝试使用 these instructions 自定义 JavaScript 开发环境。我可以用vim +PluginInstall +qall 构建插件,我正在使用Vundle,但我从vim 得到Not an editor command: SyntasticInfo:Helptags 也有同样的问题。

我该如何解决这个问题?

更新 - 一些错误日志

[2015-05-11 16:08:50] Helptags:                                                                       |~                                                                                                     
[2015-05-11 16:08:50] :helptags /my/path/to/.vim/bundle/Vundle.vim/doc                               |~                                                                                                     
[2015-05-11 16:08:50] > Error running :helptags /my/path/to/.vim/bundle/Vundle.vim/doc               |~                                                                                                     
[2015-05-11 16:08:50] :helptags /my/path/to/.vim/bundle/vim-indent-guides/doc                        |~                                                                                                     
[2015-05-11 16:08:50] > Error running :helptags /my/path/to/.vim/bundle/vim-indent-guides/doc        |~                                                                                                     
[2015-05-11 16:08:50] :helptags /my/path/to/.vim/bundle/delimitMate/doc                              |~                                                                                                     
[2015-05-11 16:08:50] > Error running :helptags /my/path/to/.vim/bundle/delimitMate/doc              |~                                                                                                     
[2015-05-11 16:08:50] :helptags /my/path/to/.vim/bundle/syntastic/doc                                |~                                                                                                     
[2015-05-11 16:08:50] > Error running :helptags /my/path/to/.vim/bundle/syntastic/doc                |~                                                                                                     
[2015-05-11 16:08:50] :helptags /my/path/to/.vim/bundle/YouCompleteMe/doc                            |~                                                                                                     
[2015-05-11 16:08:50] > Error running :helptags /my/path/to/.vim/bundle/YouCompleteMe/doc            |~                                                                                                     
[2015-05-11 16:08:50] :helptags /my/path/to/.vim/bundle/tern_for_vim/doc                             |~                                                                                                     
[2015-05-11 16:08:50] > Error running :helptags /my/path/to/.vim/bundle/tern_for_vim/doc             |~                                                                                                     
[2015-05-11 16:08:50] Helptags: 6 plugins processed 

更新 - 我的vimrc

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

Plugin 'jelera/vim-javascript-syntax'
Plugin 'eakuefner/goog-pystyle'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'Raimondi/delimitMate'
Plugin 'scrooloose/syntastic'

Plugin 'Valloric/YouCompleteMe'
Plugin 'marijnh/tern_for_vim'


set t_Co=256
set background=dark
syntax on
set textwidth=79  " lines longer than 79 columns will be broken
set shiftwidth=4  " operation >> indents 4 columns; << unindents 4 columns
set tabstop=4     " a hard TAB displays as 4 columns
set expandtab     " insert spaces when hitting TABs
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
set shiftround    " round indent to multiple of 'shiftwidth'
set autoindent
imap <C-c> <CR><Esc>0

【问题讨论】:

  • 你的vimrc包含?
  • 请描述您实际做了什么,而不是向我们指出您应该遵循的一些说明。没有人有时间阅读该页面并从中推断出您搞砸的地方。
  • 好的,我已经添加了vimrc

标签: javascript vim vim-plugin vundle


【解决方案1】:

请检查您的 vim 插件和自动加载目录 - 也许您几年前安装了 syntastic 并忘记了它?

我遇到了和你一样的错误,在我删除了 /autoload 和 /plugins 目录中的合成条目之后(所以合成的唯一位置是在 vundles bulde 目录中)它起作用了。

【讨论】:

    【解决方案2】:

    我遇到了和你一样的错误,但我已经解决了。

    请检查目录权限。确保运行 vim 的用户可以修改此文件或目录。

    【讨论】:

      猜你喜欢
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-13
      • 2023-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多