Changeset 36480
- Timestamp:
- 01/19/10 22:39:44 (3 years ago)
- Files:
-
- 1 modified
-
dotfiles/vimperator/retlet-vimperatorrc (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vimperator/retlet-vimperatorrc
r31816 r36480 1 1 " retlet .vimperatorrc 2 " for Vimperator 2.02 " for Vimperator hg head 3 3 4 4 " prefs 5 5 " ====================================================================== 6 " caretのサイズ7 "set! ui.caretWidth=108 9 6 " undo保持数 10 set! browser.sessionstore.max_tabs_undo=307 "set! browser.sessionstore.max_tabs_undo=20 11 8 12 9 " タブの閉じるボタン非表示 … … 18 15 " Awesomebarの補完対象にBookmarkletを含める&件数を変更 19 16 set! browser.urlbar.filter.javascript=false 20 set! browser.urlbar.maxRichResults=2017 "set! browser.urlbar.maxRichResults=20 21 18 22 19 " ポップアップ許可数を拡張 cf.http://la.ma.la/blog/diary_200611171115.htm … … 24 21 25 22 " Gmail/LDR/Fastladder/OpenFL/はてブでは新規タブをバックグラウンドで開く 26 autocmd LocationChange (?!https?://(mail\.google\.com\/(mail|a)\/|(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/|b\.hatena\.ne\.jp/retlet)) :set! browser.tabs.loadDivertedInBackground=false 27 autocmd LocationChange https?://(mail\.google\.com\/(mail|a)\/|(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/|b\.hatena\.ne\.jp/retlet) :set! browser.tabs.loadDivertedInBackground=true 23 autocmd LocationChange ^(?!https?://(mail\.google\.com\/(mail|a)\/|(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/|b\.hatena\.ne\.jp/(?!entry/http|articles|guide))) :set! browser.tabs.loadDivertedInBackground=false 24 autocmd LocationChange ^https?://(mail\.google\.com\/(mail|a)\/|(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/|b\.hatena\.ne\.jp/(?!entry/http|articles|guide)) :set! browser.tabs.loadDivertedInBackground=true 25 26 "autocmd LocationChange ^(?!http://www\.tumblr\.com/dashboard) :mb LDRize::toggle-smooth-scroll true 27 "autocmd LocationChange ^http://www\.tumblr\.com/dashboard :mb LDRize::toggle-smooth-scroll false 28 28 29 29 " options 30 30 " ====================================================================== 31 set nopreload31 set defsearch=g 32 32 33 33 " ex mode でインクリメント補完 … … 40 40 set titlestring=*g* 41 41 42 " スクロールバーとタブ番号を表示43 set go=rb n44 45 " 開いているページがひとつだけならタブを非表示にする46 set showtabline= 142 " GUI Options 43 set go=rb 44 45 " タブを非表示 46 set showtabline=0 47 47 48 48 " リンクのURIをコマンドラインに表示 … … 57 57 " Beep設定 58 58 set visualbell 59 hi Bell opacity: .5;59 hi Bell display: none; 60 60 61 61 " mappings 62 62 " ====================================================================== 63 63 " OSのキーバインドを再現 64 map <M-c> <C-v><M-c> 65 imap <C-f> <Right> 66 imap <C-b> <Left> 67 imap <C-p> <Up> 68 imap <C-n> <Down> 69 imap <M-a> <C-v><M-a> 70 imap <M-z> <C-v><M-z> 71 imap <M-x> <C-v><M-x> 72 imap <M-c> <C-v><M-c> 73 imap <M-v> <C-v><M-v> 74 cmap <C-f> <Right> 75 cmap <C-b> <Left> 76 cmap <C-p> <Up> 77 cmap <C-n> <Down> 78 cmap <M-a> <C-v><M-a> 79 cmap <M-z> <C-v><M-z> 80 cmap <M-x> <C-v><M-x> 81 cmap <M-c> <C-v><M-c> 82 cmap <M-v> <C-v><M-v> 64 "imap <C-f> <Right> 65 "imap <C-p> <Up> 66 "imap <C-n> <Down> 67 "cmap <C-f> <Right> 68 "cmap <C-p> <Up> 69 "cmap <C-n> <Down> 83 70 84 71 " undo一覧から開く 85 map U :undo<Space>72 noremap U :undo<Space> 86 73 87 74 " C-r でブラウザ再起動 88 map <C-r> :restart<CR>75 noremap <C-r> :restart<CR> 89 76 90 77 " 上のディレクトリに移動 91 map <BS> gu92 map <C-BS> gU78 noremap <BS> gu 79 noremap <C-BS> gU 93 80 94 81 " j/k でのスクロール幅を1行から3行に変更 95 82 noremap j 3j 96 83 noremap k 3k 84 noremap <C-j> 3j 85 noremap <C-k> 3k 97 86 98 87 " J/K をC-d/u互換に 99 map J <C-d>100 map K <C-u>88 noremap J <C-d> 89 noremap K <C-u> 101 90 102 91 " タブ移動 103 map h <C-p> 104 map l <C-n> 105 map <C-k> <C-p> 106 map <C-j> <C-n> 92 noremap h <C-p> 93 noremap l <C-n> 107 94 108 95 " タブ順序変更 109 map <C-h> :tabmove! -1<CR>110 map <C-l> :tabmove! +1<CR>96 noremap <C-h> :tabmove! -1<CR> 97 noremap <C-l> :tabmove! +1<CR> 111 98 112 99 " buffer 113 map. :buffer<Space>100 noremap <silent> . :buffer<Space> 114 101 115 102 " C-a で未分類のブックマークに追加/削除 116 noremap <C-a> A 103 noremap <C-a> A 117 104 118 105 " URL中の数字を++/-- 119 noremap ++ <C-a>120 noremap -- <C-x>106 "noremap ++ <C-a> 107 "noremap -- <C-x> 121 108 122 109 " ! でページのCSSをon/off 123 map ! :set invum<CR>110 noremap ! :set invum<CR> 124 111 125 112 " ex modeでC-jを無効化 126 c map <C-j> <Nop>113 cnoremap <C-j> <Nop> 127 114 128 115 " plugins 129 116 " ====================================================================== 130 " ime_controller.js 131 let g:ex_ime_mode = "inactive" 132 let g:textarea_ime_mode = "inactive" 117 let g:plugin_loader_roots = "~/Sites/vimperator-plugins/trunk/" 118 let g:plugin_loader_plugins = "_libly,appendAnchor,auto_reload,copy,direct_bookmark,feedSomeKeys_2,gmperator,hatenaStar,hint-tombloo,ldrize_cooperation,localkeymode,maine_coon,migemo-find,migemo_completion,multi_requester,nicontroller,no-reading,pino,pixiv_tools,proxy,sbmcommentsviewer,tombloo,twitter,walk-input,youtubeamp" 119 120 " no-reading.js 121 let g:no_reading_do_echo = 1 122 123 " appendAnchor.js 124 let g:auto_append_anchor = "true" 133 125 134 126 " encodingSwitcher.js 135 map es :set fileencoding=Shift_JIS<CR> 136 map ec :set fileencoding=EUC-JP<CR> 127 noremap es :set encoding=Shift_JIS<CR> 128 noremap ec :set encoding=EUC-JP<CR> 129 noremap eu :set encoding=UTF-8<CR> 130 noremap ei :set encodeing=ISO-2022-JP<CR> 137 131 138 132 " google-search.js 139 map gs :gsearch!<Space>133 noremap gs :gsearch!<Space> 140 134 141 135 " migemo_hint.js 142 set hintmatching=custom136 "set hintmatching=custom 143 137 144 138 " sbmcommentsviewer.js … … 146 140 let g:def_sbms = "hdl" 147 141 map bb :viewSBMComments<CR> 148 149 " hatena-bookmark-search.js150 "map bs :tabbs<Space>151 "map bS :tabbs!<Space>152 "map ,b :bs -reload<CR>153 142 154 143 " direct_bookmark.js … … 157 146 let g:direct_sbm_is_normalize = "false" 158 147 let g:direct_sbm_is_use_migemo = "true" 159 map B :bentry<CR>160 map a :sbm<CR>161 map A :sbm<Space>162 map ,a :btags<CR>148 noremap B :bentry<CR> 149 noremap a :sbm<CR> 150 noremap A :sbm<Space> 151 noremap ,a :btags<CR> 163 152 164 153 " ldrize_cooperation.js 165 154 let g:ldrc_captureMappings = "['j','k','p','o','?']" 166 let g:ldrc_intelligence_bind = "true"167 let g:ldrc_skip = "0"168 mapQ :toggleldrc<CR>155 "let g:ldrc_intelligence_bind = "true" 156 "let g:ldrc_skip = "0" 157 noremap <silent> Q :toggleldrc<CR> 169 158 170 159 " multi_requester.js 171 map ,t :twitter<Space>172 map ,T :twitter!<Space>173 map ,@ :twitter!@<CR>174 map ,mt :mr<Space>twitter-search-pcod-no-jp<Space>175 map ,mT :mr<Space>twitter-search-pcod-no-jp<Space>["retlet"]<CR>176 map ,mf :mr<Space>favotter-new<Space>177 map ,mF :mr<Space>favotter-new<Space>["retlet"]<CR>160 noremap ,t :twitter<Space> 161 noremap ,T :twitter!<Space> 162 noremap ,@ :twitter!@<CR> 163 noremap ,mt :mr<Space>twitter-search-pcod-no-jp<Space> 164 noremap ,mT :mr<Space>twitter-search-pcod-no-jp<Space>["retlet"]<CR> 165 noremap ,mf :mr<Space>favotter-new<Space> 166 noremap ,mF :mr<Space>favotter-new<Space>["retlet"]<CR> 178 167 179 168 " copy.js 180 map cp :copy<Space>169 noremap cp :copy<Space> 181 170 js <<EOM 182 171 liberator.globalVariables.copy_templates = [ … … 204 193 ['C', ':nicommand ', true], 205 194 ]], 195 [/youtube\.com\/watch/, [ 196 ['p', ':ytpause'], 197 ['m', ':ytmute'], 198 ['z', ':ytsize'], 199 ['s', ':ytseek! +10'], 200 ['S', ':ytseek! -10'], 201 ]], 206 202 [/^http:\/\/reader\.livedoor\.com\/reader/, [ 207 203 ['f', function () hints.show("t")], … … 215 211 " feedSomeKeys_2.js 216 212 autocmd LocationChange .* :fmapc 217 " Tumblr (要dashboard+tombloo.user.js, ReblogCommand.user.js) 218 autocmd LocationChange ^http://.*\.tumblr\.com/ :fmap i,tj 219 autocmd LocationChange ^http://.*\.tumblr\.com/ :fmap e,tj 220 " favotter (要Twit Fav command Minibuffer) 221 autocmd LocationChange ^http://favotter\.matope\.com/ :fmap f,F 213 " Tumblr (use: dashboard+tombloo.user.js, ReblogCommand.user.js, playontumblr.user.js) 214 autocmd LocationChange ^http://.*\.tumblr\.com/ :fmap! i,tj e,tj n,h 215 " favotter (use: Twit Fav command Minibuffer) 216 autocmd LocationChange ^http://favotter\.matope\.com/ :fmap! f,F 222 217 " Gmail 223 autocmd LocationChange ^https?://mail\.google\.com/(mail|a)/ :fmap -d 4c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gc218 autocmd LocationChange ^https?://mail\.google\.com/(mail|a)/ :fmap! c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gc 224 219 " LDR/Fastladder/OpenFL 225 autocmd LocationChange ^http://(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/ :fmap j k s a p v c z Z b i,ie r < > o,vj J,<Space> K,<S-Space> q w g u T 226 " Fastladder Reblog用 (要tombloo.xpi/ldr+tombloo.user.js) 227 autocmd LocationChange ^http://fastladder\.com/reader/ :fmap i,Tj 228 autocmd LocationChange ^http://fastladder\.com/reader/ :fmap e,Tj 220 autocmd LocationChange ^http://(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/ :fmap! j k s a p v c z Z b i e r < > o,vj J,<Space> K,<S-Space> q w g u T 221 " Fastladder Reblog用 (use: tombloo.xpi/ldr+tombloo.user.js) 222 autocmd LocationChange ^http://fastladder\.com/reader/ :fmap! i,Tj e,Tj 229 223 " iview 230 autocmd LocationChange ^chrome://iviewfx/content/iview.html :fmap j k s a z o i,tj p224 autocmd LocationChange ^chrome://iviewfx/content/iview.html :fmap! j k s a z o i,tj p 231 225 " はてブ 232 autocmd LocationChange ^http://b\.hatena\.ne\.jp/ retlet :fmap j k o eb226 autocmd LocationChange ^http://b\.hatena\.ne\.jp/(?!entry|articles|guide) :fmap! j k o,oj e a,b 233 227 234 228 " javascripts … … 236 230 " はてなブックマークツールバー連携 237 231 " cf.http://subtech.g.hatena.ne.jp/secondlife/20090402/1238655382 238 js <<EO F232 js <<EOM 239 233 liberator.globalVariables.hBookmark_shortcuts = { 240 234 hintsAdd : 'c', … … 244 238 }; 245 239 if (typeof hBookmark != 'undefined') liberator.loadScript('chrome://hatenabookmark/content/vimperator/plugin/hatenabookmark.js', {__proto__: this}); 246 EOF 247 map bs :hbtab<Space> 240 EOM 241 noremap bs :hbtab<Space> 242 243 " 読込に失敗した画像を再読込 244 " cf.http://d.hatena.ne.jp/caisui/20090502/1241256689 245 js <<EOM 246 (function(){ 247 var obj={ 248 reload:function(){ 249 obj.core.call(this,content.window); 250 },core:function(aWindow){ 251 var w=aWindow; 252 for(var i=0,j=w.frames.length;i<j;++i){ 253 arguments.callee.call(this,w.frames[i]); 254 } 255 var cnt=0,req,img,list=w.document.images; 256 for(var i=0,j=list.length;i<j;++i){ 257 img=list[i]; 258 if(img instanceof Ci.nsIImageLoadingContent && img.currentURI){ 259 req = img.getRequest(Ci.nsIImageLoadingContent.CURRENT_REQUEST); 260 if(req && !(req.imageStatus & req.STATUS_LOAD_COMPLETE)){ 261 img.forceReload(); 262 ++cnt; 263 } 264 } 265 } 266 liberator.echo("reload image:"+cnt); 267 } 268 } 269 commands.addUserCommand(["reloadimage"],"reload images",obj.reload,true); 270 })(); 271 EOM 248 272 249 273 " ステータスバーにfeedボタンを表示 … … 276 300 EOM 277 301 302 " yourfilehost cookie削除 303 " cf.http://anond.hatelabo.jp/20100108213648 304 js <<EOM 305 commands.addUserCommand( 306 ['removeCookieOfYourfile'], 307 'removeCookieOfYourfile', 308 function() { 309 liberator.execute('cookiemanager remove yourfilehostdatabase.com/'); 310 liberator.execute('cookiemanager remove yourfilehost.com/'); 311 liberator.execute('cookiemanager remove yourlifehost.jp/'); 312 } 313 ); 314 EOM 315 316 autocmd VimperatorEnter .* :autocmd GMInjectedScript "www\\.tumblr\\.com/dashboard" :js liberator.eval("ap.remainHeight = 5000", plugins.gmperator.currentSandbox.window.AutoPagerize.addFilter) 317 autocmd VimperatorEnter .* :btags 318 278 319 " qmarks 279 320 " ====================================================================== … … 283 324 qmark l al 284 325 qmark f af 326 qmark t at 327 qmark r recss 285 328 286 329 " colorscheeme 287 330 " ====================================================================== 288 colorscheme sweets 289 style -name tab-style-fix chrome://* <<EOM 290 .tab-text-shadow, 291 .tabs-newtab-button { 292 display: none !important; 293 } 294 EOM 331 colorscheme vimplight 332 style -name statusbar chrome://* <<EOM 333 #status-bar statusbarpanel { padding: 0 1px !important; } 334 statusbarpanel > * { margin: 0 !important; padding: 0 !important; } 335 EOM 336 337 style -name commandline-ime chrome://* #liberator-commandline-command input { ime-mode: inactive; } 338 295 339 296 340 " vim: set ft=vimperator:
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)