Created
December 15, 2016 08:23
-
-
Save the-nerdery-dot-info/72027d683fcd1cfecb3f150adb39bc7e to your computer and use it in GitHub Desktop.
paul_rouget_keybindings
This file contains hidden or 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
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment