Some custom keybindings:


# 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
bind o run /home/paul/bin/

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


" 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>


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


# 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> \