Code Monkey home page Code Monkey logo

vimconfigscript's Introduction

Vim配置及插件安装自动化脚本

简介

半年之前,我大概花了一周的时间折腾Ubuntu环境下的Vim,可能有人还不清楚,Ubuntu自带的vimvi,是vim的tiny版本,之所以预装这个tiny版本,是因为它足够小,而且能够满足一般的编辑需求,但是该tiny版本不能使用小键盘和方向键,这就造成了一个令人发狂的问题:在编辑模式下,移动光标会变成A B C D等字符并换行,而不是原来的上下左右移动,相信这个问题会让许多人和我一样困扰! 所以配置Vim的过程踩了许多坑,第一个就是卸载这个tiny版本的vim,安装完整的vim,之后是在自己的HOME目录建立自己的配置文件*.vimrc*,以及添加显示行号,语法高亮等基本配置,再到后面知道可以用Vundle插件管理工具安装各种插件,用Vim打造出类似IDE的开发环境......,不断往*.vimrc*中添加各种配置,折腾起来就是大半天,而且换台机器,还得重新来一次,简直是累觉不爱。 最近在看shell编程,就萌生出写一个自动化脚本,完成在一个新的Ubuntu系统的机器上Vim的配置及插件安装工作,经过几天的努力,终于这个小脚本诞生了!

适用环境 脚本地址
Ubuntu https://github.com/Wangzhike/VimConfigScript

注:表格上的适用环境都已经过验证!

无图无真相,最终的效果见下图: Vim

安装

克隆脚本

git clone https://github.com/Wangzhike/VimConfigScript.git

安装脚本

目前脚本自动安装的插件有:

安装:

  1. 进入脚本所在目录
$ cd VimConfigScript
  1. 执行脚本configVim.sh 目前脚本支持三种命令行参数:
  • ./configVim.sh -all./configVim.sh
    会安装上面提到的所有插件
  • ./configVim.sh -s [Plugin1] [Plugin2] ... [PluginN]
    会安装-s后面指定的插件,插件名字之间以空格分隔
  • ./configVim.sh -v [Plugin1] [Plugin2] ... [PluginN]
    除了-v后面指定的插件外,安装上面提到的所有插件

注:插件名称列表如下:

  • YouCompleteMe
  • Syntasitic
  • SimplyFold
  • NERDTree
  • AirLine
  • Taglist 举例:
  1. 只安装Syntastic SimplyFold Taglist插件
   $ ./configVim.sh -s Syntastic SimpylFold Taglist
  1. 安装除了YouCompleteMe以外的所有插件
   $ ./configVim.sh -v YouCompleteMe

欢迎各位使用以及改进,如有问题可以评论留言,一起努力打造更好用的Vim环境。

vimconfigscript's People

Contributors

wangzhike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vimconfigscript's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.