码迷,mamicode.com
首页 > 系统相关 > 详细

vim的配置与使用

时间:2016-07-24 14:46:47      阅读:510      评论:0      收藏:0      [点我收藏+]

标签:

经历了一次source insight 一言不合就崩溃之后,决定还是花点时间好好配置和学习以下vim

于是找到大神的配置 https://github.com/humiaozuzu/dot-vimrc

根据页面的介绍,如下操作

  1. Backup your old vim configuration files:

    mv ~/.vim ~/.vim.orig
    mv ~/.vimrc ~/.vimrc.orig
  2. Clone and install this repo:

    git clone git://github.com/humiaozuzu/dot-vimrc.git ~/.vim
    ln -s ~/.vim/vimrc ~/.vimrc
  3. Setup Vundle:

    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  4. Install bundles. Launch vim(ignore the errors and they will disappear after installing needed plugins)and run:

    :BundleInstall

     

Thst‘s it!

然后就发现报错了,类似于

处理 function vundle#installer#new..<SNR>31_process..vundle#installer#run..vundle#installer#install..<SNR>31_sync..<SNR>31_system 时发生错误:
第    1 行:
E484: 无法打开文件 /tmp/v7KQNcz/3
处理 function vundle#installer#new..<SNR>31_process 时发生错误:
第   13 行:
E121: 未定义的变量: s:last_status
E15: 无效的表达式: error == s:last_status
第   17 行:
E121: 未定义的变量: s:last_status

猜想是因为我用的是fish的原因,于是切换到bash下运行,还是错……

然后找到这篇 Vi 使用 Vundle 管理插件执行 PluginInstall 出错

在 ~/.vimrc 文件中加上一句

set shell=/bin/bash

再次执行

:BundleInstall

OK,一切正常了。

接下来就是学习怎么使用了。各种插件的操作。

 

vim的配置与使用

标签:

原文地址:http://www.cnblogs.com/zqb-all/p/5700635.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!