root/dotfiles/vimperator/teramako-vimperatorrc @ 14473

Revision 14473, 2.7 kB (checked in by teramako, 5 years ago)

for 1.2pre

Line 
1" Vimperator 1.2pre
2
3set visualbell
4set verbose=0
5set wildoptions=auto
6set complete=sfl
7set defsearch=g
8set suggestengines=w,g
9set nextpattern+=next,次(の)?ページ,\b次.*,→\b,\b,下一頁
10set previouspattern+=prev,前(の)?ページ,\b前.*,\b←
11
12noremap j 5j
13noremap k 5k
14
15" コマンドライン、テキストエリア内では<C-v>で貼り付け
16cnoremap <C-v> <S-Insert>
17" inoremap <C-v> <S-Insert>
18
19noremap I <C-q>
20
21map <Left> <C-p>
22map <Right> <C-n>
23map <S-Left> :tabmove! -1<CR>
24map <S-Right> :tabmove! +1<CR>
25
26" autoIgnoreKey.js
27javascript <<EOM
28liberator.globalVariables.autoignorekey_pages = uneval([
29   /^http:\/\/reader\.livedoor\.com\/reader/,
30   /^https?:\/\/www\.rememberthemilk\.com\//
31]);
32EOM
33" gmail_biff.js
34let g:gmbf_check_intervals = "300"
35" stylechanger.js
36let g:styles = "vimperator,tab,bookmarkstoolbar"
37" copy.js
38js <<EOF
39liberator.globalVariables.copy_templates = [
40        { label: 'hatenaAnchor',   value: '[%URL%:title=%TITLE%]' },
41  { label: 'hatenaQuote',    value: '>%URL%:title=%TITLE%>\n%SEL%\n<<' },
42  { label: 'getASIN',        value: 'get ASIN Code from amazon', custom: function() content.document.getElementById('ASIN').value },
43        { label: 'titleAndURL',    value: '%TITLE%\n%URL%' },
44        { label: 'title',          value: '%TITLE%', map: ',y' },
45        { label: 'anchor',         value: '<a href="%URL%">%TITLE%</a>' },
46        { label: 'selanchor',      value: '<a href="%URL%" title="%TITLE%">%SEL%</a>' },
47        { label: 'htmlblockquote', value: '<blockquote cite="%URL%" title="%TITLE%">%HTMLSEL%</blockquote>' }
48];
49EOF
50" Add Mapping <C-c> copy or stop loading
51javascript <<EOF
52mappings.addUserMap([modes.NORMAL,modes.VISUAL],['<C-c>'], 'Copy selected text or stop loading',
53        function(){
54                var sel = window.content.window.getSelection().toString();
55                if (sel){
56                        copyToClipboard(sel,true);
57                } else {
58                        BrowserStop();
59                        echo('Stopped loading !');
60                }
61        }
62);
63EOF
64
65" Show feed-button to statusbar
66javascript <<EOF
67(function(){
68var feedPanel = document.createElement('statusbarpanel');
69var feedButton = document.getElementById('feed-button');
70feedPanel.setAttribute('id','feed-panel-clone');
71feedPanel.appendChild(feedButton.parentNode.removeChild(feedButton));
72document.getElementById('status-bar').insertBefore(feedPanel,document.getElementById('security-button'));
73})();
74EOF
75
76javascript <<EOF
77(function(){
78var tabs = getBrowser().mTabs;
79for (var i=0; i<tabs.length; i++){
80  ['width','maxwidth','minwidth','flex'].forEach(function(attr)tabs[i].removeAttribute(attr));
81}
82document.getElementById('content').addEventListener('TabOpen',function(e){
83  var t = e.originalTarget;
84  ['width','maxwidth','minwidth','flex'].forEach(function(attr)t.removeAttribute(attr));
85},false);
86})();
87EOF
88
89echo ".vimperatorrc sourced"
90" vim:sw=2 ts=2 sts=0 et filetype=vimperator:
Note: See TracBrowser for help on using the browser.