-
-
Save d-sea/ca08b0cb765f9a255d26 to your computer and use it in GitHub Desktop.
Hiro Fukami's .vimperatorrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Hiro Fukami's Vimperatorrc | |
"------------------------+ | |
" 基本設定 | |
"+-----------------------+ | |
"メニュー/ツール/リンクを表示 | |
set toolbars=addons | |
"ページ全体で検索語を強調表示 | |
set hlsearch | |
set ignorecase | |
"ビープ音を鳴らさずビジュアルベルを使用 | |
set visualbell | |
set complete=S | |
set focuscontent | |
let g:ex_ime_mode = "inactive" | |
let g:textarea_ime_mode = "inactive" | |
"+------------------------+ | |
" キーマップ設定 | |
"+------------------------+ | |
"j/kの移動量を7倍に | |
map j 7<C-e> | |
map k 7<C-y> | |
"<BS>で「戻る」 | |
map <BS> H | |
map <S-j> <C-p> | |
map <S-k> <C-n> | |
"<S-Left>/<S-Right>で現在のタブの位置変更 | |
map <S-Left> :tabmove! -1<CR> | |
map <S-Right> :tabmove! +1<CR> | |
map @ :sp -b <S-Insert><CR> | |
map ^ :sp -r <S-Insert><CR> | |
map c :history! | |
map s :stop | |
map d <M-w> | |
map gf :t http://facebook.com<CR> | |
map gl :t http://gmail.com<CR> | |
map gm :t https://www.facebook.com/messages<CR> | |
map gn :t https://www.facebook.com/notifications<CR> | |
map gt :t http://www.twitter.com<CR> | |
map ga :t http://www.amazon.co.jp<CR> | |
map gr :t http://www.rakuten.co.jp<CR> | |
map gw :t http://console.aws.amazon.com/ec2/home<CR> | |
"+------------------------+ | |
" プラグイン設定 | |
"+------------------------+ | |
command calc -nargs=* echo JSON.parse(util.httpGet("http://suggestqueries.google.com/complete/search?client=firefox&hl=ja&q="+encodeURIComponent("<args>")).responseText)[1].filter(function(r) r.indexOf("=") == 0)[0].replace("= ","") | |
" .vimperatorrcを再読み込み | |
map <C-r> :source ~/.vimperatorrc<CR> | |
let g:direct_sbm_use_services_by_tag = "h" | |
let g:direct_sbm_use_services_by_post = "h" | |
"For FeedSomeKeys_3.js plugin | |
" autocmd VimperatorEnter .* <args> を lazy コマンドとして登録 | |
"command! -nargs=+ lazy autocmd VimperatorEnter .* <args> | |
"Gmail | |
lazy fmaps -urls='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gb gc gl b <S-i> <C-h> <C-Enter> | |
"Google Calendar | |
lazy fmaps -urls='www\.google\.com/calendar' -events=vkeydown k j r t d w m c <Del> / + q s ? | |
"Google Docs | |
lazy fmaps -urls='docs\.google\.com/' <Del> <C-x> <C-d> <C-v> <C-c> <C-y> <C-z> <C-a> | |
"Feedly | |
lazy fmaps -urls='feedly\.com/' gm ga gg r j k n p o v m x s e t ? <S-m> | |
set hintchars=hjklasdfgyuiopqwertnmzxcvb | |
hi Hint z-index:5000; font-size:12px; color:white; background-color:gray; border-color:lightgray; border-width:2px; border-style:solid; padding:0px 2px 0px 2px; position:absolute; font-family: Menlo, Consolas, Monaco, monospace; text-transform: uppercase; | |
" 最後に読み込み完了を表示 | |
echo "### Finish loading vimperatorrc. ###" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment