Firefoxのプラグインのvimperatorの設定を晒します。
使っているプラグインは、
"=============================================
_smooziee.js
copy.js
multi_requester.js
_libly.js
"=============================================
multirequesterについては下記参照。
http://ayakix-lablog.blogspot.jp/2010/04/firefox-vimperatormultirequesterjs.html
.vimperatorrc
"=============================================
" Vimp Config
"=============================================
" スクロールの端などの際に出るbeepをoff
set nobeep
" 検索で大文字小文字を無視
set ignorecase
" GUI(全て非表示)
set guioptions=
" 自動入力欄フォーカスを無効化
set focuscontent
" hint用設定 キーボード中段のみを使う
set hintchars=lsjdkfgh
" 読み込んだ事を出力
" echo "Welcome back"
" エディタをMacVim-KaoriYaに(mvimスクリプトをダウンロードして使う)
set editor='/usr/bin/mvim -f'
"=============================================
" Appearance Config
"=============================================
" Color scheme
colorscheme MyGreen
style -name tab-style-fix chrome://* <<EOM
.tab-text-shadow,
.tabs-newtab-button {
display: none !important;
}
EOM
" Hint
hi Hint z-index:5000; font-size:14px; color:white; background-color:green; border-color:ButtonShadow; border-width:0px; border-style:solid; padding:0px 2px 0px 2px; position:absolute; font-family: Menlo, Consolas, Monaco, monospace; text-transform: uppercase;
"=============================================
" Key Config
"=============================================
" OSのキーバインドを再現
noremap <C-a> <C-v><C-a>
noremap <C-c> <C-v><C-c>
inoremap <C-a> <C-v><C-a>
inoremap <C-c> <C-v><C-c>
inoremap <C-v> <C-v><C-v>
inoremap <C-x> <C-v><C-x>
inoremap <C-z> <C-v><C-z>
cnoremap <C-a> <C-v><C-a>
cnoremap <C-c> <C-v><C-c>
cnoremap <C-v> <C-v><C-v>
cnoremap <C-x> <C-v><C-x>
cnoremap <C-z> <C-v><C-z>
" Backspace に戻るを割り当て
map <BS> <A-Left>
" キーマップ変更 copy.js, multirequester.js
map c :copy<Space>
map e :mr<Space>alc<Space>
map m :mr<Space>
map w :wikipediaja<Space>
" URL中の数字を++/--
mapc +
mapc -
noremap ++ <C-a>
noremap -- <C-x>
"=============================================
" Firefox Config
"=============================================
" ダウンロードウィンドウを完了後自動で閉じる
set! browser.download.manager.closeWhenDone=true
" ダウンロード履歴をFirefox終了時に削除
set! browser.download.manager.retention=1
" ダウンロードウィンドウを完了後自動で閉じる
set! browser.download.manager.closeWhenDone=true
" ファイルダウンロード完了時のウイルススキャン機能オフ
set! browser.download.manager.scanWhenDone=false
" JavaScriptでのウィンドウ移動・リサイズ拒否
set! dom.disable_window_move_resize=true
" JavaScriptのステータスバー操作を無効化
set! dom.event.contextmenu.enabled=false
" アドオンインストール時の待ち時間カット
set! security.dialog_enable_delay=0
" キャッシュをHDDからRAMに
" set! browser.cache.disk.enable=false
" set! browser.cache.memory.enable=true
" 単位(KB)
" set! browser.cache.memory.capacity=-1
"最小化した時にメモリを開放
set! config.trim_on_minimize=true
"=============================================
" Plugin Config
"=============================================
" Smooziee 移動量を設定
let g:smooziee_scroll_amount="250"
let g:smooziee_scroll_interval="20"
" Multi requester
" auto_word_selectからmulti_requesterに投げる
js <<EOM
liberator.registerObserver("enter", function() {
// for auto_word_select.js
mappings.addUserMap(
[modes.AUTO_WORD_SELECT],
["s"],
"Translate selected word by multi_requester.js.",
function() {
// FIXME:
// A present mode is preserved in the stack beforehand by the push() method
// because it doesn't return to AUTO_WORD_SELECT mode before that when
// returning from the OUTPUT_MULTILINE mode.
modes.push(modes.AUTO_WORD_SELECT, null, true);
var selText = content.getSelection().toString();
var pattern = /[a-zA-Z]+/;
selText = pattern.test(selText) ? pattern.exec(selText) : selText;
events.feedkeys(":mr alc " + selText + "<CR>", true, true);
}
);
});
EOM
"=============================================
" Service Config
"=============================================
" Google Readerでコマンドを有効にする
autocmd LocationChange .* js modes.passAllKeys = false
autocmd LocationChange www\\.google\\.(co\\.jp|com)/reader js modes.passAllKeys = true
"=============================================
" qmark gomでgmailにジャンプ
"=============================================
qmark c http://www.google.com/calendar/render
qmark d https://docs.google.com/
qmark f http://facebook.com/
qmark m https://mail.google.com/
qmark p http://www.pirika.org/home
qmark r https://www.google.com/reader/view/
qmark t http://twitter.com/
qmark x https://mixi.jp/
qmark y http://jp.youtube.com/
MyGreen.vimp
" ==Vimperator_Color_Scheme==
" name: MyGreen
" ==Mono_Color_Scheme==
hi Hint color: White; background: Green; font-family: Consolas, Osaka, monospace, monospace;
hi HintElem color: Black; background: Desktop;
hi HintActive color: #999999; background: Desktop;
hi HintImage color: Black; background: Desktop;
hi StatusLine color: #333333; background: #eeeeee; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi StatusLineBroken color: #333333; background: #ff6060; font-family: Consolas, Osaka, monospace, monospace;
hi StatusLineSecure color: #333333; background: #aacf53; font-family: Consolas, Osaka, monospace, monospace;
hi Normal color: #00C800; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi InfoMsg color: #00C800; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi ModeMsg color: #00C800; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi MoreMsg color: #00C800; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi LineNr color: DodgerBlue; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi Question color: LightYellow; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi WarningMsg color: DeepPink; background: #333; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi Keyword color: CornflowerBlue; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi Tag color: CornflowerBlue; font-size: 9pt; font-family: Consolas, Osaka, monospace, monospace;
hi NonText background: #333;
hi Null color: SkyBlue;
hi Filter color: #aacf53; font-weight: bold;
hi CompTitle color: DodgerBlue; background: Black; font-weight: bold; font-family: Consolas, Osaka, monospace, monospace;
hi CompResult width: 45%; overflow: hidden; font-family: Consolas, Osaka, monospace, monospace;
hi CompDesc width: 50%; font-family: Consolas, Osaka, monospace, monospace;
hi CompItem font-family: Consolas, Osaka, monospace, monospace;
hi CompItem[selected] color: #aacf53; background: #555; font-weight: bold; font-family: Consolas, Osaka, monospace, monospace;
hi Gradient height: 1px; margin-bottom: -1px; margin-top: -1px;
hi GradientLeft background: #aacf53;
hi GradientRight background: #333333;
hi Title color: SkyBlue;
hi Indicator color: DodgerBlue;
hi String color: DeepPink;
hi Number color: DeepPink;
hi Object color: Khaki;
hi Function color: DeepSkyBlue;
hi URL color: PowderBlue;
hi TabNumber color: White; font-weight: bold; font-size: 10pt; font-family: Consolas, Osaka, monospace, monospace;
style -name tab chrome://* <<EOM
#liberator-statusline {
font-family: Consolas, Osaka, monospace !important;
font-weight: normal !important;
font-size: 10pt !important;
padding:3px 0 !important;
}
.tabbrowser-tab {
font-size: 12px;
font-weight: normal;
text-align: left !important;
}
#status-bar statusbarpanel {
padding: 0 1px !important;
}
statusbarpanel > * {
margin: 0 !important;
padding: 0 !important;
}
EOM