Some custom keybindings:

tmux:

# Shift Left/Right to switch windows in tmux
# without the tmux prefix
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
# Ctrl-prefix-o to highlight and open URLs
# https://github.com/dequis/tmux-url-select
bind o run /home/paul/bin/tmux-url-select.pl

Mouse via keyboard:

# Because the new Thinkpad "clickpad"
# is a joke. Via xdotool & xbindkeys:
Win-arrow to move a window
Ctrl-Win-arrow to resize a window
Shift-Win-arrow to move mouse
F1 left click
F2 middle click
F3 right click

Vim:

" Just <Tab> to switch buffers
nmap <Tab> :bn<CR>
nmap <S-Tab> :bp<CR>
" scroll but don't change the cursor position on screen
nnoremap <C-e> j<C-e>
nnoremap <C-y> k<C-y>
" visual command line
nnoremap ; :<c-f>
" quick move via <space>
nmap <space> <Plug>(easymotion-s2)
" quick save in insert mode
imap zz <Esc>:w<CR>

Firefox:

# Vim controls, via vimfx (I don't want the full-blown vimperator)
# https://addons.mozilla.org/firefox/addon/vimfx/
Ctrl-e / Ctrl-y to scroll
gg / G for home / end
Ctrl-O to highlight then open a link

Mutt:

# Archive one email
macro index a "s=archives<enter>y"
# Archive whole thread
<enter-command>unset resolve \
  <Enter><tag-thread> \
  <enter-command>set resolve \
  <Enter><tag-prefix> \
  <save-message>=archives<Enter>y

Comments