root/dotfiles/vimperator/kga-vimperatorrc

Revision 21595, 2.0 kB (checked in by kga, 5 weeks ago)

feed のアイコンとか

Line 
1" mappings
2
3noremap j 5j
4noremap k 5k
5noremap <C-h> <Left>
6noremap <C-l> <Right>
7
8noremap h gT
9noremap l gt
10
11" pass-through
12noremap <C-t> <C-z>
13
14" ex mode
15cmap <C-n> <Tab>
16cmap <C-p> <S-Tab>
17cmap <C-b> <Left>
18cmap <C-f> <Right>
19
20imap <C-b> <Left>
21imap <C-f> <Right>
22imap <C-p> <Up>
23imap <C-n> <Down>
24
25"http://unsigned.g.hatena.ne.jp/Trapezoid/20080620/1213961754
26javascript <<EOM
27[
28    [',b', ':bentry'],
29    [',c', ':copy'],
30    [',t', ':tombloo! Link']
31].forEach(function([key, command]){
32    mappings.addUserMap([modes.NORMAL], [key],
33        "User defined mapping",
34        function () { execute(command); },
35        {
36            rhs: key,
37            noremap: true
38        });
39});
40EOM
41
42set verbose=9
43set preload
44
45set titlestring=Minefield
46set visualbell
47set visualbellstyle+=opacity:0.8
48set wildoptions=auto
49set complete=sl
50set newtab=all
51"set focuscontent
52"set hintmatching=custom
53
54set nextpattern+=次(の)?ページ,→\b
55set previouspattern+=prev, 前(の)?ページ,\b←
56
57autocmd LocationChange .* :fmapc
58
59javascript <<EOF
60autocommands.add('LocationChange', /reader\.livedoor\.com\/reader\//, [
61    'js plugins.feedKey.setup(',
62        '"j k s a p v <Space> <S-Space> z Z < > q g h l n r R x T".split(/ +/)',
63    ');'
64].join(''));
65EOF
66autocmd LocationChange http://reader\.livedoor\.com/reader/ :fmap ; :
67
68" Show feed-button to statusbar
69javascript <<EOM
70(function () {
71    var feedButton = document.getElementById('feed-button');
72        feedButton.parentNode.removeChild(feedButton);
73    var feedPanel  = document.createElement('statusbarpanel');
74        feedPanel.setAttribute('id', 'feed-panel-clone');
75        feedPanel.appendChild(feedButton.cloneNode(true));
76    document.getElementById('status-bar').insertBefore(
77        feedPanel,
78        document.getElementById('security-button')
79    );
80})();
81EOM
82
83javascript <<EOM
84globalVariables.copy_templates = [
85    { label: 'url',         value: '%URL%' },
86    { label: 'titleAndURL', value: '%TITLE% %URL%' },
87    { label: 'hatena',      value: '[%URL%:title=%TITLE%]' },
88    { label: 'title',       value: '%TITLE%' }
89];
90EOM
Note: See TracBrowser for help on using the browser.