源 % 不是 vim 中的编辑器命令?



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

第 31 行:

E492:不是编辑器命令:捆绑"vim-ruby/vim-ruby">

我需要帮助。我切换到 vim,到目前为止,它已经是地狱了。我什至不知道从早上开始发生了什么,试图找出我做错了什么。

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

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

call vundle#begin()
Plugin 'vim-ruby/vim-ruby'
call vundle#end()

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

最新更新