鍍金池/ 問(wèn)答/Linux/ macOS系統(tǒng)下對(duì)vim的配置

macOS系統(tǒng)下對(duì)vim的配置

配置方法都是按照這篇帖子來(lái)的 但是不知道問(wèn)題出在哪里……
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.
  
  [書(shū)簽添加于 2018年3月12日 上午12:41:52]

Harrys-MBP:~ harry.$ touch ~/.vimrc
  
  [書(shū)簽添加于 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里運(yùn)行:PluginInstall 就會(huì)報(bào)錯(cuò)

E492: Not an editor command: PluginInstall 

請(qǐng)問(wèn)只怎么回事兒啊?剛剛接觸vim完全不懂……

回答
編輯回答
未命名

touch ~/.vimrc 之后.
執(zhí)行 vim ~/.vimrc 把后面的代碼拷貝進(jìn)去.
沒(méi)有vim,用vi執(zhí)行.

2017年3月10日 01:04