Mercurial > dotfiles
diff pentadactylrc @ 220:1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 16 Sep 2014 17:01:06 -0700 |
parents | |
children | db627a19f1e2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pentadactylrc Tue Sep 16 17:01:06 2014 -0700 @@ -0,0 +1,58 @@ +" Config for Pentadactyl + +" Scroll faster +nmap -builtin h 3h +nmap -builtin j 3j +nmap -builtin k 3k +nmap -builtin l 3l + +" Scroll easier +nmap -builtin d <C-d> +nmap -builtin e <C-u> + +" Close tab with `x` since `d` is for scrolling down now +nmap -builtin x :bd<cr> + +" Don't close the window with the last tab. +set! browser.tabs.closeWindowWithLastTab=false + +" Change tabs without awkward `CTRL` combinations +nmap -builtin J :tabprevious<cr> +nmap -builtin K :tabnext<cr> + +" Reorder tabs +nmap -builtin > :tabmove! +1<cr> +nmap -builtin < :tabmove! -1<cr> + +"New tab using the old classic way +nmap -builtin <C-t> :tabnew<cr> + +" Use `i` to get into pass-through mode, +" `I` for temporary pass-through mode, +" and `c` for the 'caret' mode. +nmap -builtin i <C-z> +nmap -builtin I <C-v> +nmap -builtin c i + +" Shortcuts for common extensions +nmap -builtin ,f i<D-\> +nmap -builtin ,p <S-Esc><A-D-\> +nmap -builtin ,b I<A-b> + +" Use and quickly hide search highlighting +set hlfind +nmap -builtin ,<Space> :noh<cr> + +" Quickly open some dialogs +nmap -builtin ,b :downloads<cr> + +set defsearch=duckduckgo + +" Super minimal UI +"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs + +" Websites with useful keyboard shortcuts already +set passkeys+=fastmail.fm:jkx.rupn +set passkeys+=feedly.com:jkgv + +" vim: ft=vim