Changeset 24675

Show
Ignore:
Timestamp:
11/23/08 08:10:53 (7 weeks ago)
Author:
janus_wel
Message:

いろいろ map
feedSomeKey2.js 用の設定を追加
multi_requester.js 用の設定を追加

Location:
dotfiles/vimperator
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/vimperator/janus_wel-vimperatorrc

    r23014 r24675  
    5555" タブの閉じるボタンを常に非表示にする 
    5656set! browser.tabs.closeButtons=2 
    57 " タブの最幅を 36px にする 
    58 set! browser.tabs.tabMinWidth=24 
     57" タブの最幅を 36px にする 
     58set! browser.tabs.tabMaxWidth=24 
    5959" 補完候補の数を 10 個にする 
    6060set! browser.urlbar.maxRichResults=10 
     
    8989 
    9090" A で bookmark toggle ( デフォルト ) を解除 
    91 map A <Nop> 
     91"map A <Nop> 
    9292 
    9393" J, K で幅のおおきいスクロール 
    9494map J <C-d> 
    9595map K <C-u> 
     96 
     97" p でクリップボードのものを開くのはウザいので無効化 
     98map p <Nop> 
    9699 
    97100" <C-k> で検索ページにいくのがウザイので無効化 
     
    133136map <Leader>R :mapc<CR>:cmapc<CR>:imapc<CR>:so ~/.vimperatorrc<CR> 
    134137 
     138" みんな好きだろ ? echo 
     139map e :echo<Space> 
     140 
    135141 
    136142" Plugins ----------------------------------------------------------------- 
    137143" a で del.icio.us へ post 
    138 " plugin : direct_bookmark.js 
     144" plugin: direct_bookmark.js 
    139145"map a :sbm<Space> 
    140146 
    141147" v でブックマークコメントを表示 
    142 " plugin : sbmcommentsviewer.js 
     148" plugin: sbmcommentsviewer.js 
    143149"map v :viewSBMComments -t hd 
    144150 
    145151" c で title 要素コピー 
    146 " plugin : copy.js 
     152" plugin: copy.js 
    147153map c :copy title<CR> 
    148154 
    149 " e で ALC 英辞郎で辞書を引く 
    150 " plugin : lookupDictionary.js 
    151 map e :eijiro<Space> 
     155" plugin: blinkelement.js 
     156map <Leader>b :bl content.document.getElement 
     157map <Leader>e :bl buffer.evaluateXPath 
    152158 
    153159" 使用する Social Bookmark を del.icio.us とはてなブックマークに設定 
    154 " plugin : direct_bookmark.js 
     160" plugin: direct_bookmark.js 
    155161let g:direct_sbm_use_services_by_post='dh' 
    156162let g:direct_sbm_use_services_by_tag='dh' 
    157163 
    158 " plugin : matanico.js 
     164" plugin: matanico.js 
    159165let g:matanico_status_servicename='またニコ' 
    160166let g:matanico_status_format='$SERVICENAME : $COMMENT [$SUBJECT]($PLAYTIME) - $URL' 
     
    164170let g:matanico_related_tag_format='$SERVICENAME : $COMMENT [$KEYWORD]($NUMOFTAGS件) - $URL' 
    165171 
    166 " plugin : reading.js 
     172" plugin: reading.js 
    167173let g:reading_servicename='reading' 
    168174let g:reading_format='$SERVICENAME : $COMMENT [$TITLE] $URL $SELECTED' 
    169175 
    170176" 再生リストの表示数を 7 個に 
    171 " plugin : nnp_cooperation.js 
     177" plugin: nnp_cooperation.js 
    172178let g:nnp_coop_numoflist='7' 
    173179 
     
    185191 
    186192 
     193" autocmd --------------------------------------------------------------- 
     194autocmd LocationChange .* :fmapc 
     195autocmd LocationChange http://fastladder\\.com/reader/ :fmap j k s a p o v c <Space> <S-Space> z b < > q w 
     196autocmd LocationChange https?://www\\.rememberthemilk\\.com/home/ :fmap j k m i c t <Del> <C-S-Left> <C-S-Right> 
     197 
     198 
    187199" finish ---------------------------------------------------------------- 
    188200echo ".vimperator sourced." 
  • dotfiles/vimperator/janus_wel-vimperatorrc.js

    r23014 r24675  
    1  
     1// .vimperator.js 
     2// author: janus_wel<janus@fb3.so-net.ne.jp> 
    23 
    34// 自動で PASS THROUGH mode にする URL の設定 
    45// plugin : autoIgnoreKey.js 
    5 liberator.globalVariables.autoignorekey_pages = uneval([ 
    6     /^https?:\/\/www\.google\.com\/reader\//, 
    7     /^http:\/\/www\.rememberthemilk\.com\/home\//, 
    8 ]); 
     6//liberator.globalVariables.autoignorekey_pages = uneval([ 
     7//    /^https?:\/\/www\.google\.com\/reader\//, 
     8//    /^http:\/\/www\.rememberthemilk\.com\/home\//, 
     9//]); 
    910 
    1011// 動画サイトの操作用 map 
     
    4748            extra:          { rhs: ':viewSBMComments -t hd<CR>', }, 
    4849        }, 
     50        { 
     51            command:        'p', 
     52            action:         function() {}, 
     53            description:    'Nop', 
     54            extra:          {}, 
     55        }, 
    4956    ]; 
    5057 
     
    192199 
    193200        { 
    194             url:    '^http://jp\\.youtube\\.com/watch', 
     201            url:    '^http://[^\\.]+\\.youtube\\.com/watch', 
    195202            maps:   [ 
    196203                { 
     
    342349})(); 
    343350 
     351// multi_requester.js 
     352liberator.globalVariables.multi_requester_mappings = [ 
     353    ['E', 'alc'], 
     354    ['W', 'goo'], 
     355    ['A', 'answers'], 
     356]; 
    344357 
    345358// finished