Skip to content

Instantly share code, notes, and snippets.

View amandarae's full-sized avatar

amanda rae amandarae

View GitHub Profile
@amandarae
amandarae / vim_cheatsheet.md
Created August 15, 2012 21:39 — forked from zefer/vim_cheatsheet.md
My newbie Vim cheatsheet

#Vim Cheat Sheet by jessedearing

  • gqip - Reformats paragraph to textwidth
  • gq - Reformats selection
  • :Tab /= - Equally spaces based on the = symbol (requires Tabular vim plugin)
  • :setf language - Changes current language
  • :set language=language - Changes current language
  • <C-a> - Increments the number under the cursor
  • <C-x> - Decrements the number under the cursor
  • ~ - Toggles case and moves to next character in normal mode

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@amandarae
amandarae / iterm2.md
Created August 15, 2012 21:35 — forked from sockmonk/iterm2.md
iterm2 cheatsheet
Function Shortcut
previous tab ⌘ + left arrow
next tab ⌘ + right arrow
go to tab ⌘ + number
close a tab ⌘ + w
go to window ⌘ + Option + Number
go to split pane by direction ⌘ + Option + arrow
go to split pane by order of use ⌘ + ] , ⌘ + [
split window horizontally (same profile) ⌘ + D