Mercurial > dotfiles
annotate pentadactylrc @ 264:85ba8a78b216
Simplified ctrlpignore.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 24 Jan 2015 13:29:00 -0800 |
parents | 6c1ae937ad66 |
children |
rev | line source |
---|---|
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
1 " Config for Pentadactyl |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
2 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 " Scroll faster |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
4 nmap -builtin h 3h |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 nmap -builtin j 3j |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
6 nmap -builtin k 3k |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
7 nmap -builtin l 3l |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
8 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
9 " Scroll easier |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
10 nmap -builtin d <C-d> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
11 nmap -builtin e <C-u> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
12 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
13 " Close tab with `x` since `d` is for scrolling down now |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
14 nmap -builtin x :bd<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
15 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
16 " Don't close the window with the last tab. |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
17 set! browser.tabs.closeWindowWithLastTab=false |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
18 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
19 " Change tabs without awkward `CTRL` combinations |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
20 nmap -builtin J :tabprevious<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
21 nmap -builtin K :tabnext<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
22 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
23 " Reorder tabs |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
24 nmap -builtin > :tabmove! +1<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
25 nmap -builtin < :tabmove! -1<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
26 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
27 "New tab using the old classic way |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
28 nmap -builtin <C-t> :tabnew<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
29 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
30 " Use `i` to get into pass-through mode, |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
31 " `I` for temporary pass-through mode, |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
32 " and `c` for the 'caret' mode. |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
33 nmap -builtin i <C-z> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
34 nmap -builtin I <C-v> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
35 nmap -builtin c i |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
36 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
37 " Shortcuts for common extensions |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
38 nmap -builtin ,f i<D-\> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
39 nmap -builtin ,p <S-Esc><A-D-\> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
40 nmap -builtin ,b I<A-b> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
41 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
42 " Use and quickly hide search highlighting |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
43 set hlfind |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
44 nmap -builtin ,<Space> :noh<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
45 |
223 | 46 " Aw come on, copy/pasting is ridiculous by default. |
47 map -builtin -modes=i,c,v <C-c> <C-v><C-c> | |
48 map -builtin -modes=i,c <C-x> <C-v><C-x> | |
49 map -builtin -modes=i,c <C-v> <C-v><C-v> | |
50 | |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
51 " Quickly open some dialogs |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
52 nmap -builtin ,b :downloads<cr> |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
53 |
249
efff5f3e72bb
Fixes for one of my keyboards.
Ludovic Chabant <ludovic@chabant.com>
parents:
231
diff
changeset
|
54 " On keyboards like the Leopold FC660C, for some obscure reason, the |
efff5f3e72bb
Fixes for one of my keyboards.
Ludovic Chabant <ludovic@chabant.com>
parents:
231
diff
changeset
|
55 " <Insert> key sends the <Help> ID. WTF. |
efff5f3e72bb
Fixes for one of my keyboards.
Ludovic Chabant <ludovic@chabant.com>
parents:
231
diff
changeset
|
56 noremap <Help> <Insert> |
efff5f3e72bb
Fixes for one of my keyboards.
Ludovic Chabant <ludovic@chabant.com>
parents:
231
diff
changeset
|
57 |
262
6c1ae937ad66
This is not Python, dammit.
Ludovic Chabant <ludovic@chabant.com>
parents:
256
diff
changeset
|
58 " DDG FTW |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
59 set defsearch=duckduckgo |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
60 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
61 " Super minimal UI |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
62 "set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
63 |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
64 " Websites with useful keyboard shortcuts already |
231
6d520cf84974
Fastmail changed their domain.
Ludovic Chabant <ludovic@chabant.com>
parents:
223
diff
changeset
|
65 set passkeys+=fastmail.com:jkomxeyga#.rupn,/,<S-g>m,<S-g>c,<S-g>a |
223 | 66 set passkeys+=feedly.com:jkgvnpm |
242
7f9afeff086f
Passkeys for Feedbin.
Ludovic Chabant <ludovic@chabant.com>
parents:
231
diff
changeset
|
67 set passkeys+=feedbin.com:hjklesmvVFcf123456789rgAa?<Space><Esc>,/ |
231
6d520cf84974
Fastmail changed their domain.
Ludovic Chabant <ludovic@chabant.com>
parents:
223
diff
changeset
|
68 set passkeys+=groups.google.com:jkuonp |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
69 |
243 | 70 " Website-specific groups |
71 " Feedbin | |
72 group! feedbin -loc feedbin.com | |
73 javascript <<EOF | |
74 function feedbinScrollUp() { | |
75 el = content.document.getElementsByClassName('entries'); | |
76 if (el != undefined && el.length > 0) { | |
77 el[0].scrollTop -= el[0].clientHeight/2; | |
78 } else { | |
79 content.console.error("Can't find the entries list. Got: ", el); | |
80 } | |
81 } | |
82 function feedbinScrollDown() { | |
83 el = content.document.getElementsByClassName('entries'); | |
84 if (el != undefined && el.length > 0) { | |
85 el[0].scrollTop += el[0].clientHeight/2; | |
86 } else { | |
87 content.console.error("Can't find the entries list. Got: ", el); | |
88 } | |
89 } | |
90 EOF | |
91 nmap -builtin -js <PageUp> feedbinScrollUp() | |
92 nmap -builtin -js <PageDown> feedbinScrollDown() | |
93 | |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
94 " vim: ft=vim |