首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >source %不是vim中的编辑器命令吗?

source %不是vim中的编辑器命令吗?
EN

Stack Overflow用户
提问于 2020-06-14 23:45:22
回答 1查看 214关注 0票数 1

处理/home/USER/.vimrc时检测到错误:

第31行:

E492:不是编辑器命令: bundle‘vim-ruby/vim-ruby’

我需要帮助。我切换到vim,现在已经是地狱了。从早上开始我甚至不知道发生了什么事情,试图找出我做错了什么。

代码语言:javascript
复制
  1 set number 
  2 
  3 set nocompatible              " be iMproved, required
  4 filetype off                  " required
  5 
  6 " set the runtime path to include Vundle and initialize
  7 set rtp+=~/.vim/bundle/Vundle.vim
  8 call vundle#begin()
  9 " alternatively, pass a path where Vundle should install plugins
 10 "call vundle#begin('~/some/path/here')
 11 
 12 " let Vundle manage Vundle, required
 13 Plugin 'VundleVim/Vundle.vim'
 14 
 15 " The following are examples of different formats supported.
 16 " Keep Plugin commands between vundle#begin/end.
 17 " plugin on GitHub repo
 18 Plugin 'tpope/vim-fugitive'
 19 " plugin from http://vim-scripts.org/vim/scripts.html
 20 " Plugin 'L9'
 21 " Git plugin not hosted on GitHub
 22 Plugin 'https://github.com/wincent/Command-T.git'
 23 " git repos on your local machine (i.e. when working on your own plugin)
 24 " The sparkup vim script is in a subdirectory of this repo called vim.
 25 " Pass the path to set the runtimepath properly.
 26 Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
 27 " Install L9 and avoid a Naming conflict if you've already installed a
 28 " different version somewhere else.
 29 " Plugin 'ascenator/L9', {'name': 'newL9'}
 30 
 31 bundle ‘vim-ruby/vim-ruby'
 32 " All of your Plugins must be added before the following line
 33 call vundle#end()            " required
 34 filetype plugin indent on    " required
 35 " To ignore plugin indent changes, instead use:
 36 "filetype plugin on
 37 "
 38 " Brief help
 39 " :PluginList       - lists configured plugins
 40 " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
 41 " :PluginSearch foo - searches for foo; append `!` to refresh local cache
 42 " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
 43 "
 44 " see :h vundle for more details or wiki for FAQ
 45 " Put your non-Plugin stuff after this line
EN

回答 1

Stack Overflow用户

发布于 2020-06-15 00:12:39

您使用了错误的命令来安装vim-ruby插件。您可以参考该项目的documentation了解更多详细信息。至于你的.vimrc,Vundle的正确安装应该是这样的:

代码语言:javascript
复制
call vundle#begin()
Plugin 'vim-ruby/vim-ruby'
call vundle#end()

在修改您的.vimrc之后,从vim中运行:PluginInstall命令。

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

https://stackoverflow.com/questions/62374774

复制
相关文章

相似问题

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