開発環境やら設定ファイルやらなんかの置き場

vimperator 1.2pre

firefoxアドオンのvimperator環境

plugins

autoIgnoreKey.js
char-hints-mod.js
copy.js
googlesuggest.js
hatenabookmark_show.js
ldrize_cooperation.js
lookupDictionary.js
twitter.js

.vimperatorrc

" vim: set ft=vimperator:

"+----------------------------------------------------------------------------------------+
" 基本設定
"+----------------------------------------------------------------------------------------+

" ブラウザタイトルの変更
" Firefox デフォルトは 「Mozilla - Firefox」、vimoperatorを入れると「vimoperator」
set titlestring=Firefox
"メニュー/ツール/リンクを表示
"set guioptions=bmT
"set guioptions=mT
"ページ全体で検索語を強調表示
set hlsearch
"ビープ音を鳴らさずビジュアルベルを使用
set visualbell
"ビジュアルベルを無効化
set visualbellstyle=display:none;
"ヒントのスタイルを指定
set hintstyle=z-index:5000; font-family:monospace; font-size:12px; color:white; background-color:blue; border-color:ButtonShadow; border-width:0px; border-style:solid; padding:0px 1px 0px 1px; position:absolute;
"ヒント(フォーカス時)のスタイルを指定
"set focusedhintstyle=z-index:5000; font-family:monospace; font-size:12px; color:ButtonText; background-color:ButtonShadow; border-color:ButtonShadow; border-width:1px; border-style:solid; padding:0px 1px 0px 1px; position:absolute;

set wildoptions=auto
set complete=l
"set complete+=g

"migemo_hint.js・・・1.2pre動かない??
"set hintmatching=custom

"+----------------------------------------------------------------------------------------+
" キーマップ設定
"+----------------------------------------------------------------------------------------+

"ロケーションバーにフォーカス
map <C-l> <A-d>

"ソースの表示
map <C-u> <C-q><C-u><ESC>

"yで選択範囲をコピー
"map y :echo 'Yank!'<CR>Y
"j/kの移動量を5倍に
map j 5<C-e>
map k 5<C-y>
" 選択文字列のコピーを <C-c> に割り当て
map <C-c> Y
" 選択文字列のgoogle検索を <C-g> に割り当て
map <C-g> YP

" H/L や ← → でタブ移動
map H <A-Left>
map L <A-Right>
map <Left>  gT
map <Right> gt
map h <C-p>
map l <C-n>

" Shift + ← → で現在のタブの位置変更
map <S-Right> :tabmove! +1<CR>
map <S-Left>  :tabmove! -1<CR>

"<A-r>でFirefoxを再起動
map <A-r> :restart<CR>
"<A-h>でヘルプを表示
map <A-h> :help<CR>
"メニューバー,ロケーションバー(非)表示
map <A-Down> :set guioptions+=mT<CR>
map <A-Up> :set guioptions-=mT<CR>

"+----------------------------------------------------------------------------------------+
" プラグイン設定
"+----------------------------------------------------------------------------------------+
" ldrize_cooperation.js
" http://unsigned.g.hatena.ne.jp/Trapezoid/20080530/1212074680
let g:ldrc_captureMappings = "['j', 'k', 'p', 'o', '?']"
let g:ldrc_intelligence_bind = "true"
let g:ldrc_skip = "0.25"
" googlesuggest.js --- sでグーグル検索
map s :google<Space>
" hatenabookmark_show.js --- bではてブのコメントを表示
map b :hbinfo<CR>
" copy.js --- <C-S-c>でタイトルとURLをコピー
map <C-C> :copy titleAndURL<CR>
map c :copy<Space>
javascript <<EOM
liberator.globalVariables.copy_templates = [
 { label: 'titleAndURL',    value: '%TITLE%\n%URL%' },
 { label: 'title',          value: '%TITLE%', map: ',y' },
 { label: 'url',            value: '%URL%' },
 { label: 'anchor',         value: '<a href="%URL%">%TITLE%</a>' },
 { label: 'selanchor',      value: '<a href="%URL%" title="%TITLE%">%SEL%</a>' },
 { label: 'htmlblockquote', value: '<blockquote cite="%URL%" title="%TITLE%">%HTMLSEL%</blockquote>' },
 { label: 'ASIN',   value: 'copy ASIN code from Amazon', custom: function() content.document.getElementById('ASIN').value}
];
EOM

"+----------------------------------------------------------------------------------------+
" 独自設定
"+----------------------------------------------------------------------------------------+
" feedアイコン表示
"http://d.hatena.ne.jp/teramako/20071205/p1
javascript <<EOF
(function(){
var feedPanel = document.createElement('statusbarpanel');
var feedButton = document.getElementById('feed-button');
feedPanel.setAttribute('id','feed-panel-clone');
feedPanel.appendChild(feedButton.cloneNode(true));
feedButton.parentNode.removeChild(feedButton);
document.getElementById('status-bar').insertBefore(feedPanel,document.getElementById('security-button'));
})();
EOF

" disable accesskey
javascript <<EOM
liberator.options.setPref('ui.key.generalAccessKey', 0);
EOM

" 読み込んだ事を出力
echo ".vimperatorrc sourced"

userChrome.css 2008/06/25更新

/* bufferwindow style */
#liberator-container{
    color: blue !important; // 指定しないとbufferwindowでcolorが利かない
}
#liberator-bufferwindow, #liberator-completion, #liberator-previewwindow {
    color: blue !important;
    background-color: #eee !important;
}

/* commandline style */
#liberator-commandline{
    /*font-family:"Luxi Mono", monospace !important; // <-- フォントを指定するなら  */
    background-color: #222 !important;
    color: #fff !important;
    font-weight: normal !important;
    font-size: 10pt !important;
}
#liberator-toolbar {
    color: green !important;
}

#liberator-statusline {
    /*font-family:"Luxi Mono", monospace !important; // <-- フォントを指定するなら  */
    font-weight: normal !important;
    font-size: 10pt !important;
    padding:3px 0 !important;
}

/* normal page statusline */
.hl-StatusLine {
     background-color: #000 !important;
     color: #B0FF00 !important;
}

/* secure(ssl) page statusline */
.hl-StatusLineSecure {
     background-color: #B0FF00 !important; /* light green */
     color: black !important;
}