summaryrefslogtreecommitdiffstats
path: root/pentadactylrc
blob: 3a62fe6f715f78b91b07db2a77c4d0657239f79b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
map ; <Leader>
map -builtin \" ;

" single line status/command bar
set go-=C

" scrolling
map H :bp<CR>
map L :bn<CR>
map J 20j
map K 20k

" navigation
map <C-h> :back<CR>
map <C-L> :forward<CR>

" disable autocompletion entirely
set au=
" when completing, only show 5 at a time
set maxitems=5

" prettier hint numbering
highlight Hint -append font-size:11px;font-weight:bold;background:#fff;border:1px solid red;color:#000;font-family:monospace
set hintkeys=")!@#$%^&*("

" backspace to open panorama
map <BS> <C-v><C-S-e>
map <C-f><C-f> <C-v><C-S-e>

" default to using the 'g' search keyword
set defsearch=g

" highlight all matches, but let them be hidden
set hlfind
nmap <Leader>/ :nohlfind<CR>

" reactivate `` - can't actually use ` mark since pentadactyl wants letter
" registers only
nmap -builtin gg mpgg
nmap -builtin G mpG
map `` `p

map a :pb 

map , :
nmap ) 0

" no beeps
javascript dactyl.beep = function() { return false; }

command! wish js add_to_amazon_wishlist();
:js <<EOJS
  add_to_amazon_wishlist = function() {
    var amazon_wishlist_url = 'http://www.amazon.com/wishlist/add'
                            + '?u=' + encodeURIComponent(window.getBrowser().currentURI.spec)
                            + '&t=' + encodeURIComponent(window.getBrowser().contentDocument.title);
    window.open(amazon_wishlist_url, 'amzwishlist', 'width=900,height=553');
  }
EOJS

" vim:ft=vim: