Skip to content

Instantly share code, notes, and snippets.

@mbbroberg
Last active February 21, 2017 07:05
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save mbbroberg/63a4e3d1a6c0e9be0fc0 to your computer and use it in GitHub Desktop.
Save mbbroberg/63a4e3d1a6c0e9be0fc0 to your computer and use it in GitHub Desktop.
A gathering of useful shortcuts for others new to iTerm2

iTerm2 – Useful Shortcuts (Mac OS X)

with a hat tip to Sublime Text 2 Shortcuts

The Awesome

⌘; autocomplete
⌘⌥B instant replay
⌘⌥E search across all tabs

Splits/Tabs

⌘T open new tab
⌘⌥] next tab
⌘⌥[ previous tab
⌘D split pane left-right
⌘⌥D split pane top-bottom
⌘] next pane
⌘[ previous pane
⌘⌥I Input to all panes

Resizing

⌘⌥= toggle maximize window
⌘Enter toggle fullscreen
⌘+ increase font and window size
⌘- decrease font and window size
@dperkins65
Copy link

For a great Vim/iTerm2 color scheme, check out Railscasts, thanks to chrishunt.

A minor edit is required to the vimrc, otherwise Chris' instructions are spot-on.

" ~/.vimrc
set t_Co=256
syntax on

set background=dark
colorscheme base16-railscasts

highlight clear SignColumn
highlight VertSplit    ctermbg=236
highlight ColorColumn  ctermbg=237
highlight LineNr       ctermbg=236 ctermfg=240
highlight CursorLineNr ctermbg=236 ctermfg=240
highlight CursorLine   ctermbg=236
highlight StatusLineNC ctermbg=238 ctermfg=0
highlight StatusLine   ctermbg=240 ctermfg=12
highlight IncSearch    ctermbg=0   ctermfg=3
highlight Search       ctermbg=0   ctermfg=9
highlight Visual       ctermbg=3   ctermfg=0
highlight Pmenu        ctermbg=240 ctermfg=12
highlight PmenuSel     ctermbg=0   ctermfg=3
highlight SpellBad     ctermbg=0   ctermfg=1

@somada141
Copy link

Any way to select (part of) a command (in order to copy it) with Shift+ Left/Right Arrow (similar behavior to any text editor)?

@nmccready
Copy link

Anyone know how to go tot he top of the buffer in one key stroke?

@nmccready
Copy link

nmccready commented Jan 12, 2017

Anyone know how to go tot he top of the buffer in one key stroke?

CMD+HOME : top
CMD+END : bottom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment