GithubHelp home page GithubHelp logo

vimconf's Introduction

About this repo

This is the VIM conf I'm using. I don't think that there could be a "perfect" and "general" VIM configuration which can make everybody happy.

If there was, then you should ask why VIM is designed configurable, what's the differents between VIM and the other editors which can be used directly without VIM's "complex" configuration, and the most important question: why you are using VIM?

In my opnion, people loves VIM(Emacs) because it is flexible and configurable. If we hate some behavoirs of VIM, we can change it ourself instead of suffering and complaining, not because VIM increases our typing speed.

I created this repo just for myself, but there may be something you can reference. Just read it and create your own, do not copy it, copying helps nothing.

Properties

  • Multi Operating System Supported.
  • Screen scrolling optmized, reading with j & k is now coziness.
  • Smooth transition between a vim with default configuration.
  • Plugins' version also managed by git using git submodule.
  • Idle keys reasonably used.
  • Working Directory auto detect.
  • Most properties are useable for any type of files.
  • Other treaking hacking.

Try it

You can try it with the following steps:

  • git clone [email protected]:luochen1990/vimconf.git
  • put this directory 'vimconf' to whereever you like, such as your dropbox directory.
  • edit your vimrc so it looks like this (just replace the dropbox path 'D:/Dropbox/' to your own):
	let $vimconf = 'D:/Dropbox/vimconf'
	source $vimconf/vimrc
  • reboot your vim.
  • run :PlugInstall in Vim to install other plugins.
  • reboot your vim.

Dropbox Friendly

With .git directory in Dropbox directory will cause some headache problems. So you must want to move your git working directory to somewhere else outside of Dropbox directory. Here is my solution:

create file git-clone-ext.sh with the following content:

gitpath=$(echo $(pwd)/$2 | sed 's/\/[^/]*\/\.\.\/\|\/\.\//\//g' | sed 's/\/\+/\//g')
workpath=$(echo $(pwd)/$3 | sed 's/\/[^/]*\/\.\.\/\|\/\.\//\//g' | sed 's/\/\+/\//g')
echo $gitpath
echo $workpath
git --work-tree=$workpath clone --recursive $1 $gitpath && echo "gitdir: $gitpath" > $workpath/.git

then run some command like this in CLI:

sh git-clone-ext.sh [email protected]:luochen1990/vimconf.git ../github/vimconf.git ./config/vimconf

here is the meaning of the arguments of git-clone-ext.sh

  • $1: the url to clone
  • $2: the git repo directory
  • $3: the git working directory

vimconf's People

Contributors

luochen1990 avatar

Stargazers

 avatar  avatar qiforan avatar dcf avatar guandao712 avatar Andy Shevchenko avatar Kidman avatar mozooo avatar  avatar Ken avatar  avatar 2013WUSO01 avatar  avatar  avatar  avatar Qionghua Yang avatar mkug3 avatar zgqq avatar  avatar aben avatar flycat avatar Salim avatar Jerry avatar Robert Audi avatar Doug Ilijev avatar JamesKid avatar jeyzhu avatar

Watchers

James Cloos avatar  avatar xxx avatar JamesKid avatar flycat avatar aben avatar  avatar  avatar

Forkers

suainam

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.