| 1 | hi StatusLine color: black; background: LightGray; font-weight: normal; font-size: 12pt; |
|---|
| 2 | hi Normal color: black; background: white; font-size: 14pt; |
|---|
| 3 | hi CompItem[selected] color: black; background: Gold; |
|---|
| 4 | hi CompDesc color: black; width: 50%; |
|---|
| 5 | |
|---|
| 6 | " Mappings |
|---|
| 7 | |
|---|
| 8 | " http://subtech.g.hatena.ne.jp/secondlife/20080919/1221795410 |
|---|
| 9 | "qmark b hatebu |
|---|
| 10 | |
|---|
| 11 | let mapleader="," |
|---|
| 12 | |
|---|
| 13 | noremap ,a :dialog addons<CR> |
|---|
| 14 | noremap ,d :dialog downloads<CR> |
|---|
| 15 | noremap ,c :dialog console<CR> |
|---|
| 16 | noremap ,m :open http://mail.google.com/mail<CR> |
|---|
| 17 | noremap ,r :open http://www.google.com/reader<CR> |
|---|
| 18 | |
|---|
| 19 | noremap e :echo<Space> |
|---|
| 20 | |
|---|
| 21 | noremap <C-l> <Esc> |
|---|
| 22 | cnoremap <C-l> <Esc> |
|---|
| 23 | inoremap <C-l> <Esc> |
|---|
| 24 | |
|---|
| 25 | noremap <C-i> <Tab> |
|---|
| 26 | noremap <C-I> <S-Tab> |
|---|
| 27 | cnoremap <C-i> <Tab> |
|---|
| 28 | cnoremap <C-I> <S-Tab> |
|---|
| 29 | inoremap <C-i> <Tab> |
|---|
| 30 | inoremap <C-I> <S-Tab> |
|---|
| 31 | |
|---|
| 32 | cnoremap <C-n> <Down> |
|---|
| 33 | cnoremap <C-p> <Up> |
|---|
| 34 | inoremap <C-n> <Down> |
|---|
| 35 | inoremap <C-p> <Up> |
|---|
| 36 | |
|---|
| 37 | noremap <C-m> <CR> |
|---|
| 38 | inoremap <C-m> <CR> |
|---|
| 39 | |
|---|
| 40 | " Fuzzyfinder like buffer move |
|---|
| 41 | noremap <C-n> :buffer<Space> |
|---|
| 42 | |
|---|
| 43 | cnoremap <C-f> <Right> |
|---|
| 44 | cnoremap <C-b> <Left> |
|---|
| 45 | inoremap <C-f> <Right> |
|---|
| 46 | inoremap <C-b> <Left> |
|---|
| 47 | |
|---|
| 48 | noremap j 3<C-e> |
|---|
| 49 | noremap k 3<C-y> |
|---|
| 50 | |
|---|
| 51 | noremap h :tp<CR> |
|---|
| 52 | noremap l :tn<CR> |
|---|
| 53 | |
|---|
| 54 | noremap <C-r> :restart<CR> |
|---|
| 55 | "noremap ,r :so .vimperatorrc<CR> |
|---|
| 56 | |
|---|
| 57 | noremap <C-j> : |
|---|
| 58 | noremap <C--> + |
|---|
| 59 | |
|---|
| 60 | " for SKK |
|---|
| 61 | "cnoremap <C-j> <Nop> |
|---|
| 62 | |
|---|
| 63 | " Options |
|---|
| 64 | |
|---|
| 65 | " about:config |
|---|
| 66 | set! dom.disable_window_move_resize=true |
|---|
| 67 | set! browser.fullscreen.autohide=false |
|---|
| 68 | |
|---|
| 69 | " left-hand mouse case |
|---|
| 70 | set guioptions=lb |
|---|
| 71 | |
|---|
| 72 | set 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 |
|---|
| 77 | set wildoptions=auto |
|---|
| 78 | set complete=l |
|---|
| 79 | |
|---|
| 80 | set activate=quickmark,paste |
|---|
| 81 | |
|---|
| 82 | set focuscontent=on |
|---|
| 83 | |
|---|
| 84 | " Disable vimperator keys on Google mail and Google reader |
|---|
| 85 | autocmd 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 |
|---|
| 90 | javascript << 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 | })(); |
|---|
| 99 | EOF |
|---|
| 100 | |
|---|
| 101 | command google -nargs=* tabopen http://www.google.co.jp/search?q=<args> |
|---|
| 102 | noremap <silent> S :exe ":google "+content.getSelection()<CR> |
|---|
| 103 | |
|---|
| 104 | " #224 Look up the words you selected in on-line dictionary dict.cn |
|---|
| 105 | command alc -nargs=* tabopen http://eow.alc.co.jp/<args> |
|---|
| 106 | noremap w :alc<Space> |
|---|
| 107 | noremap <silent> W :exe ":alc "+content.getSelection()<CR> |
|---|
| 108 | |
|---|
| 109 | " Abbreviations |
|---|
| 110 | |
|---|
| 111 | source! ~/.vimperatorrc.local |
|---|
| 112 | |
|---|
| 113 | echo ".vimperatorrc sourced" |
|---|
| 114 | |
|---|
| 115 | " vim: set ft=vimperator: |
|---|