Skip to content

Commit

Permalink
ʕ  ゚皿゚ ʔ setup to search english word from online dictionaly (using v…
Browse files Browse the repository at this point in the history
…im-ref)
  • Loading branch information
yuroyoro committed Sep 19, 2014
1 parent fd81ea0 commit e3c19d7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 13 deletions.
11 changes: 4 additions & 7 deletions .vimrc.bundle
Expand Up @@ -67,20 +67,20 @@ endif
NeoBundle 'thinca/vim-textobj-plugins.git'

" vim-textobj-lastpat : 最後に検索されたパターンをtext-objectに
NeoBundle 'kana/vim-textobj-lastpat.git'
" NeoBundle 'kana/vim-textobj-lastpat.git'

" vim-textobj-indent : インデントされたものをtext-objectに
NeoBundle 'kana/vim-textobj-indent.git'

" vim-textobj-function : 関数の中身をtext-objectに
NeoBundle 'kana/vim-textobj-function.git'
" NeoBundle 'kana/vim-textobj-function.git'

" vim-textobj-fold : 折りたたまれたアレをtext-objectに
" NeoBundle 'kana/vim-textobj-fold.git'
NeoBundle 'textobj-rubyblock'
" NeoBundle 'textobj-rubyblock'

" vim-textobj-entire : buffer全体をtext-objectに
NeoBundle 'textobj-entire'
" NeoBundle 'textobj-entire'

" 「foo」 or 【bar】などをtext-objectに
NeoBundle 'textobj-jabraces'
Expand Down Expand Up @@ -289,9 +289,6 @@ endif
" ステータスラインをカッコよくする
NeoBundle 'Lokaltog/vim-powerline'

" Redmine on Vim
NeoBundle 'mattn/vim-metarw-redmine'

" A framework to read/write fake:path
NeoBundle 'kana/vim-metarw'

Expand Down
43 changes: 37 additions & 6 deletions .vimrc.plugins_setting
Expand Up @@ -433,6 +433,43 @@ endfunction
nnoremap <expr><silent> <C-c> quickrun#is_running() ? quickrun#sweep_sessions() : "\<C-c>"

autocmd BufReadPost *_spec.rb call RSpecQuickrun()

"------------------------------------
" vim-ref
"------------------------------------
"
"Vim で英語を書く時に便利なプラグインいくつか - akishin999の日記
"http://d.hatena.ne.jp/akishin999/20131024/1382569289
"
" vim-ref のバッファを q で閉じられるようにする
autocmd FileType ref-* nnoremap <buffer> <silent> q :<C-u>close<CR>

" カーソル下の単語を英辞書る
nnoremap ej :Ref webdict ej <C-r><C-w><Enter>

" 辞書定義
let g:ref_source_webdict_sites = {
\ 'je': {
\ 'url': 'http://dictionary.infoseek.ne.jp/jeword/%s',
\ },
\ 'ej': {
\ 'url': 'http://ejje.weblio.jp/content/%s'
\ },
\ }

" デフォルトサイト
let g:ref_source_webdict_sites.default = 'ej'

" 出力に対するフィルタ
" 最初の数行を削除
function! g:ref_source_webdict_sites.je.filter(output)
return join(split(a:output, "\n")[15 :], "\n")
endfunction

function! g:ref_source_webdict_sites.ej.filter(output)
return join(split(a:output, "\n")[15 :], "\n")
endfunction

"------------------------------------
" Pydiction
"------------------------------------
Expand Down Expand Up @@ -494,12 +531,6 @@ endfunction
autocmd User Rails call SetUpRailsSetting()


"------------------------------------
" mattn/vim-metarw-redmine
"------------------------------------
let g:metarw_redmine_server = 'http://redmine.dev.scaleout.jp'
let g:metarw_redmine_apikey = '2ed945f405865ec799ff91b7bb364215f932c51c'

"------------------------------------
" GoLang gocde
"------------------------------------
Expand Down

0 comments on commit e3c19d7

Please sign in to comment.