Last active
April 12, 2016 13:32
-
-
Save dtothefp/3a60154be3f70e04674e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://iterm2.com/documentation-one-page.html
http://teohm.com/blog/2012/03/22/working-effectively-with-iterm2/
https://danielmiessler.com/enhancements-to-shell-and-vim-productivity/