| 1 | noremap h <C-p> |
|---|
| 2 | noremap l <C-n> |
|---|
| 3 | noremap J <PageDown> |
|---|
| 4 | noremap K <PageUp> |
|---|
| 5 | noremap j 5j |
|---|
| 6 | noremap k 5k |
|---|
| 7 | |
|---|
| 8 | " pass through |
|---|
| 9 | noremap <C-q> <C-v> |
|---|
| 10 | |
|---|
| 11 | noremap . d |
|---|
| 12 | noremap { <S-Tab><C-Enter> |
|---|
| 13 | noremap } <Tab><C-Enter> |
|---|
| 14 | |
|---|
| 15 | noremap a <PageUp> |
|---|
| 16 | noremap z <PageDown> |
|---|
| 17 | |
|---|
| 18 | " commands |
|---|
| 19 | noremap gl :qmarks<CR> |
|---|
| 20 | noremap a :dialog addbookmark<CR> |
|---|
| 21 | noremap <Left> :tabmove! -1<CR> |
|---|
| 22 | noremap <Right> :tabmove! +1<CR> |
|---|
| 23 | noremap ,a :dialog addons<CR> |
|---|
| 24 | noremap ,d :dialog downloads<CR> |
|---|
| 25 | noremap ,c :dialog console<CR> |
|---|
| 26 | noremap ,g :set go+=m<CR> |
|---|
| 27 | noremap ,G :set go-=m<CR> |
|---|
| 28 | noremap ,t :twitter<Space> |
|---|
| 29 | |
|---|
| 30 | " moreqmarks.js |
|---|
| 31 | noremap gv :stacklist<CR> |
|---|
| 32 | noremap gz :queuelist<CR> |
|---|
| 33 | |
|---|
| 34 | " incuri.js |
|---|
| 35 | noremap [@ :decuri<CR> |
|---|
| 36 | noremap ]: :incuri<CR> |
|---|
| 37 | |
|---|
| 38 | " Paste |
|---|
| 39 | cmap <C-v> <S-Insert> |
|---|
| 40 | imap <C-v> <S-Insert> |
|---|
| 41 | |
|---|
| 42 | set guioptions=m |
|---|
| 43 | |
|---|
| 44 | set focuscontent |
|---|
| 45 | |
|---|
| 46 | set complete=slh |
|---|
| 47 | "set wildoptions=auto |
|---|
| 48 | |
|---|
| 49 | " ]] |
|---|
| 50 | set nextpattern=��.*,��,\bnext,>> |
|---|
| 51 | " [[ |
|---|
| 52 | set previouspattern=�O.*,��,\bprev,<< |
|---|
| 53 | |
|---|
| 54 | set verbose=9 |
|---|
| 55 | |
|---|
| 56 | javascript <<EOM |
|---|
| 57 | // add dialogs |
|---|
| 58 | [ |
|---|
| 59 | ['bbs2chreader', 'bbs2chreader', 'chrome://bbs2chreader/content/bbsmenu/page.xul', 'resizable,width=200,height=700'], |
|---|
| 60 | ['scrapbook', 'ScrapBook', 'chrome://scrapbook/content/scrapbook.xul', 'resizable,width=300,height=700'], |
|---|
| 61 | ['foxage2ch', 'Foxage2ch', 'chrome://foxage2ch/content/foxage2ch.xul'], |
|---|
| 62 | ['livehttpheaders', 'Live HTTP Headers', 'chrome://livehttpheaders/content/LiveHTTPHeaders.xul'], |
|---|
| 63 | ].forEach(function([name, description, uri, args]) liberator.config.dialogs.push([name, description, function() openDialog(uri, "_blank", args)])); |
|---|
| 64 | |
|---|
| 65 | // SessionManager |
|---|
| 66 | liberator.commands.add(["saves[ession]"], "Save Session", function() gSessionManager.saveWindow()); |
|---|
| 67 | |
|---|
| 68 | // proxy.js |
|---|
| 69 | liberator.globalVariables.proxy_settings = [ |
|---|
| 70 | { |
|---|
| 71 | conf_name: 'disable', |
|---|
| 72 | conf_usage: 'direct connection', |
|---|
| 73 | settings: [ |
|---|
| 74 | { |
|---|
| 75 | label: 'type', |
|---|
| 76 | param: 0 |
|---|
| 77 | } |
|---|
| 78 | ] |
|---|
| 79 | }, |
|---|
| 80 | { |
|---|
| 81 | conf_name: 'forwarding', |
|---|
| 82 | conf_usage: 'use port forwarding', |
|---|
| 83 | settings: [ |
|---|
| 84 | { |
|---|
| 85 | label: 'type', |
|---|
| 86 | param: 1 |
|---|
| 87 | }, |
|---|
| 88 | { |
|---|
| 89 | label: 'http', |
|---|
| 90 | param: 'localhost' |
|---|
| 91 | }, |
|---|
| 92 | { |
|---|
| 93 | label: 'http_port', |
|---|
| 94 | param: 8080 |
|---|
| 95 | } |
|---|
| 96 | ] |
|---|
| 97 | } |
|---|
| 98 | ]; |
|---|
| 99 | EOM |
|---|
| 100 | |
|---|
| 101 | echo ".vimperatorrc is loaded" |
|---|
| 102 | " vim: set ft=javascript sw=4 ts=4 et: |
|---|