首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vundle Vim未安装插件

Vundle Vim未安装插件
EN

Stack Overflow用户
提问于 2016-08-24 01:34:29
回答 1查看 981关注 0票数 0

我正在Centos 7上使用vundle vim,目前我遇到了一些问题,我似乎无法安装在其他pcs上工作过的插件,而且我似乎不记得如何解决这个问题。所以我删除了我的.vim和.vimrc,然后重新git克隆了vundle git。

因此,当我启动vim时,我会收到:

代码语言:javascript
复制
Error detected while processing /home/abarkley/.vimrc:
line   24:
E117: Unknown function: vundle#begin
line   26:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
line   27:
E492: Not an editor command: Plugin 'ekalinin/Dockerfile.vim'
line   28:
E492: Not an editor command: Plugin 'pangloss/vim-javascript'
line   29:
E492: Not an editor command: Plugin 'elzr/vim-json'
line   30:
E492: Not an editor command: Plugin 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
line   31:
E492: Not an editor command: Plugin 'jparise/vim-graphql'
line   32:
E492: Not an editor command: Plugin 'IN3D/vim-raml'
line   34:
E492: Not an editor command: Plugin 'godlygeek/tabular'
line   35:
E492: Not an editor command: Plugin 'plasticboy/vim-markdown'
line   37:
E492: Not an editor command: Bundle 'scrooloose/syntastic'
line   39:
E117: Unknown function: vundle#end

如果我打开vundle并执行:PluginInstall,它将返回一个Not an editor命令错误。

另外,在# sudo mv Test.vimrc .vimrc之后是否需要对.vimrc进行chmod

我的.vimrc:

代码语言:javascript
复制
set nocompatible
filetype off

set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=4

let g:syntastic_mode_map = { 'mode': 'active',
                            \ 'active_filetypes': ['python', 'javascript'],
                            \ 'passive_filetypes': [] }

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']

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

Plugin 'VundleVim/Vundle.vim'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'elzr/vim-json'
Plugin 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
Plugin 'jparise/vim-graphql'
Plugin 'IN3D/vim-raml'

Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'

Bundle 'scrooloose/syntastic'

call vundle#end()
filetype plugin indent on
autocmd Filetype gitcommit setlocal spell textwidth=72
EN

回答 1

Stack Overflow用户

发布于 2016-08-24 02:49:00

像这样试一下:

代码语言:javascript
复制
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'elzr/vim-json'
Plugin 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
Plugin 'jparise/vim-graphql'
Plugin 'IN3D/vim-raml'

Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'

Bundle 'scrooloose/syntastic'

call vundle#end()
set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=4

let g:syntastic_mode_map = { 'mode': 'active',
                            \ 'active_filetypes': ['python', 'javascript'],
                            \ 'passive_filetypes': [] }

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']


filetype plugin indent on
autocmd Filetype gitcommit setlocal spell textwidth=72

(首先调用rtp和bundle功能,然后设置插件的变量)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39107499

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档