Skip to content

Instantly share code, notes, and snippets.

@dtothefp
Last active April 12, 2016 13:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtothefp/3a60154be3f70e04674e to your computer and use it in GitHub Desktop.
Save dtothefp/3a60154be3f70e04674e to your computer and use it in GitHub Desktop.
# Add this to .zshrc for VIM modes in shell....holy shit, amazing!!!!
# although this does effect the ability to scroll through bash history with ctlr+p, ctrl+n, if ctrl is remapped to cap locks via
# system preferences
bindkey -v
# preferences > keys -- hotkey to open iterm = option+space
# preferences > keys -- change hotkeys for moving previous/next tabs to more similar to VIM, combo with h (previous) l (next)
# preferences > profiles > keys -- right and/or left option key to +Esc, allows easier navigating of words in command line
commands:
options+space -- global open iterm from anywhere
ctrl+b -- move back one word
ctrl+f -- move forward one word
ctrl+a -- jump to beginning of line
ctrl+b -- jump to end of line
cmd+h -- previous tab
cmd+l -- next tab
cmd+d -- open session in new vertical pane
cmd+shift+d -- open session in new horizontal pane
cmd+w -- close session
cmd+ctrl+arrow -- moves between windows (conflicts with my Spectacle so potentially remap)
ctrl+d -- delete character under cursor
ctrl+h -- backspace
ctrl+w -- delete word
ctrl+k -- delete rest of line from cursor
ctrl+u -- delete from start of line to cursor (doesn't seem to work in iTerm...deletes entire line)
ctrl+y -- brings deleted line back
option+d -- delete word
ctrl+r -- reverse search through history, use repeatedly to search further back