Skip to content

Latest commit

 

History

History
108 lines (75 loc) · 2.83 KB

README.md

File metadata and controls

108 lines (75 loc) · 2.83 KB

dotfiles

My bash configuration files with a couple of useful aliases.

Installation

Automatic way

Fire up your terminal and type the following in it:

$ curl https://raw.github.com/wschott/dotfiles/master/install.sh | sh

Don't worry, all your old files will be backed up!

Manual way

$ git clone git://github.com/wschott/dotfiles.git ~/.dotfiles
$ ~/.dotfiles/install.sh

Add requirements

$ git submodule init
$ git submodule update

Update every now and then

by running:

$ ~/.dotfiles/install.sh

VIM Mappings

General

  • ,inv — Toggle invisibles.
  • ,tc — toggle completion with tab key
  • ,e — Opens an edit command with current file's path as directory.
  • te — Opens an edit commend for a new tab.
  • ,d — Open directory of current file in current tab.
  • ,dt — Open directory of current file in new tab.
  • ,cd — Open current file's directory.
  • ,, — Toggle search highlight.
  • H — go to start of line
  • L — go to end of line
  • Y — Yank from cursor to end of line (same as y$).
  • ,* — Replace word under cursor.
  • > — indent current block
  • < — unindent current block
  • zj — insert a newline below
  • zk — insert a newline above
  • ,vu — Source .vimrc.
  • Q — reformat paragraph

Tabs

  • ⌃j — go to previous tab
  • ⌃k — go to next tab

Splits

  • + — increase split size
  • - — decrease split size
  • ⌃h — go to left split
  • ⌃l — go to right split
  • ,h — create a split on the left side
  • ,l — create a split on the right side
  • ,k — create a split above
  • ,j — create a split below

Commands

  • :W — Alias to :w

Plugin Mappings

  • Taskpaper
    • ,td — mark as done
    • ,tx — mark as cancelled
    • ,tp — fold all projects
    • ,ta — show all projects
    • ,tc — show all tasks with context under cursor

VIM plugins

  • PyFlakes checks code for errors
  • SnipMate
  • vim git
  • taskpaper
  • PyRef
    • `` — show python reference in browser
  • Python (by Sergei Matusevich)
    • % — jump to the end of the indented block and back
    • FN-F5 — execute current file

Thanks to...