macOS系统下对vim的配置

配置方法都是按照这篇帖子来的 但是不知道问题出在哪里……
https://segmentfault.com/a/11...

Last login: Mon Mar 12 00:40:24 on ttys000
Harrys-MBP:~ harry.$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

fatal: destination path '/Users/harry./.vim/bundle/Vundle.vim' already exists and is not an empty directory.
  
  [书签添加于 2018年3月12日 上午12:41:52]

Harrys-MBP:~ harry.$ touch ~/.vimrc
  
  [书签添加于 2018年3月12日 上午12:41:58]

Harrys-MBP:~ harry.$ set nocompatible              " required
> filetype off                  " required
Harrys-MBP:~ harry.$ 
Harrys-MBP:~ harry.$ " 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
-bash:  set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

: No such file or directory
Harrys-MBP:~ harry.$ "call vundle#begin('~/some/path/here')
> 
> " let Vundle manage Vundle, required
-bash: call vundle#begin('~/some/path/here')

: No such file or directory
Harrys-MBP:~ harry.$ Plugin 'gmarik/Vundle.vim'
-bash: Plugin: command not found
Harrys-MBP:~ harry.$ 
Harrys-MBP:~ harry.$ " Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
> " All of your Plugins must be added before the following line
-bash:  Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
: command not found
Harrys-MBP:~ harry.$ call vundle#end()            " required
-bash: syntax error near unexpected token `('
Harrys-MBP:~ harry.$ filetype plugin indent on    " required

但是之后在vim里运行:PluginInstall 就会报错

E492: Not an editor command: PluginInstall 

请问只怎么回事儿啊?刚刚接触vim完全不懂……

阅读 3.9k
1 个回答

touch ~/.vimrc 之后.
执行 vim ~/.vimrc 把后面的代码拷贝进去.
没有vim,用vi执行.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏