Skip to content

Instantly share code, notes, and snippets.

@mahm
Created April 1, 2011 15:23
Show Gist options
  • Save mahm/898328 to your computer and use it in GitHub Desktop.
Save mahm/898328 to your computer and use it in GitHub Desktop.
"2.2
" Runtime Path
set runtimepath=/Users/mahm/.vimperator
" source! /Users/mahm/.vimperatorrc
" undo保持数
set! browser.sessionstore.max_tabs_undo=30
" タブの閉じるボタン非表示
"set! browser.tabs.closeButtons=2
" options
" ======================================================================
" ex mode でインクリメント補完
" set wildoptions=auto
" :[tab]open の補完対象と順番
set complete=Slb
" maine_coon.js
"set mainecoon=am
"右側にスクロールバーを表示
" set guioptions=r
" スクロールバーとタブ番号を表示
"let go=rbn
" 常にタブを表示(0で非表示。2で表示)
" set showtabline=0
" バッファリストを常時表示
"ls!
" リンクのURIをステータスラインに表示
set showstatuslinks=1
" 新規ウィンドウの処理
set popups=1
" ページロード時にテキストボックスにフォーカスするのを防ぐ
set focuscontent
" 詳細表示を5行に(最大値=9)
set verbose=5
" Beep設定
set visualbell
hi Bell opacity: .5;
" migemo設定
" set hintmatching=custom
" mappings
" ======================================================================
"j/kの移動量を5倍に
noremap j 5<C-e>
noremap k 5<C-y>
"J/KにPageDown,PageUpを割り当て
noremap J <PageDown>
noremap K <PageUp>
"h/lでタブ移動
noremap h gT
noremap l gt
" color
" ======================================================================
" Sweets
" colorscheme sweets_snaka
" editor
" ======================================================================
" MacVimで編集できるように設定
set editor='/opt/local/bin/mvim -f'
" copy.jsで短縮URLをサポート
" ======================================================================
js <<EOF
liberator.globalVariables.copy_templates = [
{ label: 'goo.gl', value: 'get goo.gl short url',
custom: function() {
var ret = "";
var xhr = util.httpGet(
"http://ggl-shortener.appspot.com/?url=" + encodeURIComponent(buffer.URL));
if (xhr && xhr.status === 200) {
ret = JSON.parse(xhr.responseText).short_url;
}
return ret;
}
}
];
EOF
" hatenabookmark.js
" ======================================================================
javascript if (typeof hBookmark != 'undefined') liberator.loadScript('chrome://hatenabookmark/content/vimperator/plugin/hatenabookmark.js', {__proto__: this});
" Feedボタンをステータスバーに移動
" Show feed-button to statusbar
" ======================================================================
javascript <<EOM
liberator.globalVariables.migrate_elements = [
{
// star button of awesome bar
id: 'feed-button',
dest: 'security-button',
after: true,
}
];
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment