Skip to content

Instantly share code, notes, and snippets.

@vlkz
vlkz / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vlkz
vlkz / gitcom.md
Last active August 29, 2015 14:10 — forked from jednano/gitcom.md

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@vlkz
vlkz / gist:8829222
Created February 5, 2014 17:41 — forked from gwa/gist:8803319
# Add this to your ~/.profile to open the sublime project file in the current directory using `sublp` without any arguments.
# Note: `subl` ust be in your PATH.
#
# Usage: Navigate to folder containing project file. Type `sublp` and hit enter.
#
alias sublp='find . -name "*.sublime-project" | head -1 | xargs subl --project'