zoukankan      html  css  js  c++  java
  • vim的配置与使用

    经历了一次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,一切正常了。

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

  • 相关阅读:
    [方法] 如何做产品功能设计
    js如何去除一个数组中与另一个数组中的值相同的元素
    js 导出Excel2
    js 导出Excel
    CSS3动画
    没有欲望是一种什么样的感觉
    L9-DOM高级应用
    L8-DOM操作应用
    L7-DOM基础
    L6-js定时器的应用
  • 原文地址:https://www.cnblogs.com/zqb-all/p/5700635.html
Copyright © 2011-2022 走看看