账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    macOS系统下对vim的配置
    29
    0

    配置方法都是按照这篇帖子来的 但是不知道问题出在哪里……
    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完全不懂……

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 情墨 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版