root/dotfiles/vimperator/kozo-ni-vimperatorrc @ 34322

Revision 34322, 2.9 kB (checked in by kozo-ni, 4 years ago)

alcの検索コマンド用にspace足した

Line 
1hi StatusLine           color: black; background: LightGray; font-weight: normal; font-size: 12pt;
2hi Normal               color: black; background: white;     font-size: 14pt;
3hi CompItem[selected]   color: black; background: Gold;
4hi CompDesc             color: black; width: 50%;
5
6" Mappings
7
8" http://subtech.g.hatena.ne.jp/secondlife/20080919/1221795410
9"qmark b hatebu
10
11let mapleader=","
12
13noremap ,a :dialog addons<CR>
14noremap ,d :dialog downloads<CR>
15noremap ,c :dialog console<CR>
16noremap ,m :open http://mail.google.com/mail<CR>
17noremap ,r :open http://www.google.com/reader<CR>
18
19noremap e :echo<Space>
20
21noremap <C-l> <Esc>
22cnoremap <C-l> <Esc>
23inoremap <C-l> <Esc>
24
25noremap <C-i> <Tab>
26noremap <C-I> <S-Tab>
27cnoremap <C-i> <Tab>
28cnoremap <C-I> <S-Tab>
29inoremap <C-i> <Tab>
30inoremap <C-I> <S-Tab>
31
32cnoremap <C-n> <Down>
33cnoremap <C-p> <Up>
34inoremap <C-n> <Down>
35inoremap <C-p> <Up>
36
37noremap <C-m> <CR>
38inoremap <C-m> <CR>
39
40" Fuzzyfinder like buffer move
41noremap <C-n> :buffer<Space>
42
43cnoremap <C-f> <Right>
44cnoremap <C-b> <Left>
45inoremap <C-f> <Right>
46inoremap <C-b> <Left>
47
48noremap j 3<C-e>
49noremap k 3<C-y>
50
51noremap h :tp<CR>
52noremap l :tn<CR>
53
54noremap <C-r> :restart<CR>
55"noremap ,r :so .vimperatorrc<CR>
56
57noremap <C-j> :
58noremap <C--> +
59
60" for SKK
61"cnoremap <C-j> <Nop>
62
63" Options
64
65" about:config
66set! dom.disable_window_move_resize=true
67set! browser.fullscreen.autohide=false
68
69" left-hand mouse case
70set guioptions=lb
71
72set visualbell
73
74" http://unsigned.g.hatena.ne.jp/Trapezoid/20080620/1213889094
75" http://mattn.kaoriya.net/software/firefox/vimperator/20080620102116.htm
76" #135       Change your completion settings if you miss Firefox's AwesomeBar
77set wildoptions=auto
78set complete=l
79
80set activate=quickmark,paste
81
82set focuscontent=on
83
84" Disable vimperator keys on Google mail and Google reader
85autocmd LocationChange .* :js modes.passAllKeys = /mail\.google\.com|docs\.google\.com|www\.google\.com\/calendar|www\.google\.com\/reader\/view/.test(buffer.URL)
86
87" http://vimperator.org/trac/wiki/Vimperator/Tips&Tricks
88
89" #17     Show the feed-button in the statusbar
90javascript << EOF
91(function(){
92    var feedPanel = document.createElement("statusbarpanel");
93    feedPanel.setAttribute("id", "feed-panel-clone");
94    feedPanel.appendChild(document.getElementById("feed-button"));
95    feedPanel.firstChild.setAttribute("style", "padding: 0; max-height: 16px;");
96    document.getElementById("status-bar")
97            .insertBefore(feedPanel, document.getElementById("security-button"));
98})();
99EOF
100
101command google -nargs=* tabopen http://www.google.co.jp/search?q=<args>
102noremap <silent> S :exe ":google "+content.getSelection()<CR>
103
104" #224       Look up the words you selected in on-line dictionary dict.cn
105command alc -nargs=* tabopen http://eow.alc.co.jp/<args>
106noremap w :alc<Space>
107noremap <silent> W :exe ":alc "+content.getSelection()<CR>
108
109" Abbreviations
110
111source! ~/.vimperatorrc.local
112
113echo ".vimperatorrc sourced"
114
115" vim: set ft=vimperator:
Note: See TracBrowser for help on using the browser.