Giter Club home page Giter Club logo

dotvim's Introduction

sohooo's VIM config

This setup is based on various sources all around github. Huge credits go to these projects:

Features

  • fully portable; place this vimrc anywhere you want
  • conditional loading of plugins/language features with NeoBundleLazy
  • distraction-free writing mode

Installation

  1. Put this repo in a place you like: git clone http://github.com/sohooo/dotvim.git ~/.dotvim
  2. Iinstall NeoBundle: mkdir -p ~/.dotvim/bundle && git clone https://github.com/Shougo/neobundle.vim ~/.dotvim/bundle/neobundle.vim
  3. Create an alias to use your Vim installation: alias v='mvim -u ~/.dotvim/vimrc'; this way, we don't interfere with the system Vim installation.
  4. Start Vim and type :NeoBundleInstall to install the (missing) plugins defined in .vimrc.
  5. Enjoy!

Bindings

Here's a list of some useful keyboard bindings:

  • s vim-sneak; like 'f', but multiple lines
  • ,f find file w/ Unite
  • ,b choose buffer w/ Unite
  • ,g grep in current path w/ Unite
  • ,d toggle NerdTree
  • ,u toggle UndoTree
  • ,v toggle GoldenView autoresizing (enabled on start)
  • ,w toggle distraction-free writing
  • gcc toggle comment on/off
  • jj remap von ESC; this rox!
  • F9 toggle paste/nopaste
  • F10 toggle number/nonumber
  • ,tt change tabs

Neosnippets

  • ctrl-p | ctrl-n cycle through elements
  • ctrl-k complete snippet

Unite

  • <c-jk> movement
  • <c-t> open in tab
  • <c-v> open in vertical split
  • <c-h> open in horizontal split

Fugitive

  • :Gdiff show diff
  • :Gstatus toggle files with -

Tabular

  • ,t= align =
  • ,t: align :
  • ,tt align =>

Other Tips

Statusbar Fonts

For an even prettier status bar, use one of the patched fonts from the Powerline wiki.

Distraction-free Writing

Distraction-free writing a la iAWriter is supported via a plugin from LakTEK. Toggle the view with F4, and don't forget to disable the OSX native fullscreen view:

defaults write org.vim.MacVim MMNativeFullScreen 0

You also need the Cousine Font from Google as a free alternative to Nitti Light.

dotvim's People

Watchers

 avatar

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.