Changeset 23014
- Timestamp:
- 11/08/08 23:19:25 (2 months ago)
- Location:
- dotfiles/vimperator
- Files:
-
- 2 modified
-
janus_wel-vimperatorrc (modified) (9 diffs)
-
janus_wel-vimperatorrc.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vimperator/janus_wel-vimperatorrc
r21799 r23014 1 1 " for 2.0pre (created: 2008/05/03 07:30:09) 2 " mapleader は map する前に設定しておかないとデフォルト値が使われる 2 3 3 4 " Basics ------------------------------------------------------------------ … … 11 12 set defsearch=google 12 13 13 " :[tab]open での補完順位をブックマーク・検索エンジンの suggest ・ 履歴の順にする14 set complete=b lS14 " :[tab]open での補完順位をブックマーク・検索エンジンの suggest ・ awesome bar の順にする 15 set complete=bSl 15 16 16 17 " 新しいタブを開いてもフォーカスしない … … 38 39 set focuscontent 39 40 41 " ページの HTTP Header を request / response ともに表示する 42 " cookie も同時に表示 43 set pageinfo=gfmhHc 44 40 45 41 46 " set! ------------------------------------------------------------------ … … 50 55 " タブの閉じるボタンを常に非表示にする 51 56 set! browser.tabs.closeButtons=2 52 " タブの再行幅を 50px にする 53 set! browser.tabs.tabMinWidth=50 57 " タブの最小幅を 36px にする 58 set! browser.tabs.tabMinWidth=24 59 " 補完候補の数を 10 個にする 60 set! browser.urlbar.maxRichResults=10 54 61 55 62 " ポップアップを 100 まで許可する … … 64 71 65 72 73 " Variables --------------------------------------------------------------- 74 " map する前に設定しておかないとデフォルトが使われてしまう 75 let mapleader=',' 76 77 66 78 " Mappings ---------------------------------------------------------------- 67 79 " Ctrl + h / l で左右のタブにフォーカス … … 73 85 map <C-n> :tabmove! +1<CR> 74 86 75 " <S-a> ( デフォルト ) で bookmark toggle を解除 76 map <S-a> <Nop> 87 " I で pageinfo 88 map I :pageinfo<CR> 89 90 " A で bookmark toggle ( デフォルト ) を解除 91 map A <Nop> 92 93 " J, K で幅のおおきいスクロール 94 map J <C-d> 95 map K <C-u> 77 96 78 97 " <C-k> で検索ページにいくのがウザイので無効化 … … 107 126 noremap <F11> <C-v><F11> 108 127 128 " たまに効かないのでちゃんと map 109 129 imap <C-h> <BS> 130 131 " .vimperatorrc の読み込み 132 map <Leader>r :so ~/.vimperatorrc<CR> 133 map <Leader>R :mapc<CR>:cmapc<CR>:imapc<CR>:so ~/.vimperatorrc<CR> 134 110 135 111 136 " Plugins ----------------------------------------------------------------- … … 120 145 " c で title 要素コピー 121 146 " plugin : copy.js 122 map c :copy %TITLE%<CR>147 map c :copy title<CR> 123 148 124 149 " e で ALC 英辞郎で辞書を引く … … 155 180 source ~/.vimperatorrc.js 156 181 182 157 183 " CSS ------------------------------------------------------------------- 158 source ~/.vimperatorrc.css184 "source ~/.vimperatorrc.css 159 185 160 186 161 " vim: ft=vimperator sw=4 sts=4 187 " finish ---------------------------------------------------------------- 188 echo ".vimperator sourced." 189 190 " vim: ft=vimperator sw=4 sts=4 et -
dotfiles/vimperator/janus_wel-vimperatorrc.js
r21799 r23014 46 46 description: 'display social bookmark comments', 47 47 extra: { rhs: ':viewSBMComments -t hd<CR>', }, 48 },49 {50 command: 'p',51 action: function() { liberator.execute('<Nop>'); },52 description: 'disable \'p\'',53 extra: { rhs: '<Nop>', },54 48 }, 55 49 ]; … … 302 296 }, 303 297 ]; 298 299 // status bar 300 // refer: http://vimperator.org/trac/ticket/17 301 // display feed icon 302 (function(){ 303 var feedPanel = document.createElement('statusbarpanel'); 304 var feedButton = document.getElementById('feed-button'); 305 feedPanel.setAttribute('id', 'feed-panel-clone'); 306 feedPanel.appendChild(feedButton.parentNode.removeChild(feedButton)); 307 document.getElementById('status-bar').insertBefore(feedPanel,document.getElementById('security-button')); 308 })(); 309 310 // display favicon 311 liberator.plugins.faviconizeStatusBar = function () { 312 var panelInit = function () { 313 var panel = document.getElementById('page-proxy-favicon-clone'); 314 if (!panel) { 315 panel = document.createElement('statusbarpanel'); 316 panel.setAttribute('id', 'page-proxy-favicon-clone'); 317 } 318 319 while (panel.childNodes.length > 0) { 320 panel.removeChild(panel.childNodes.item(0)); 321 } 322 323 return panel; 324 }; 325 326 var base = document.getElementById('page-proxy-favicon'); 327 var panel = panelInit(); 328 panel.appendChild(base.cloneNode(true)); 329 //base.parentNode.removeChild(base); 330 331 document.getElementById('status-bar').insertBefore(panel, document.getElementById('liberator-statusline')); 332 } 333 liberator.modules.autocommands.add('LocationChange', '.*', 'js liberator.plugins.faviconizeStatusBar()'); 334 liberator.modules.autocommands.add('DOMLoad', '.*', 'js liberator.plugins.faviconizeStatusBar()'); 335 336 // colors 337 (function(){ 338 var colorDir = io.getRuntimeDirectories('colors')[0]; 339 io.readDirectory(colorDir).forEach( function (file) { 340 if (/\.css$/i.test(file.path)) io.source(file.path, false); 341 }); 342 })(); 343 344 345 // finished 346 liberator.echo('.vimperator.js sourced.'); 347 348 // vim: sw=4 sts=4 ts=4 et
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)