diff --git a/.vimrc.bundle b/.vimrc.bundle index 533e18529..6383fba2a 100644 --- a/.vimrc.bundle +++ b/.vimrc.bundle @@ -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' @@ -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' diff --git a/.vimrc.plugins_setting b/.vimrc.plugins_setting index a8a786b21..97803ce4b 100644 --- a/.vimrc.plugins_setting +++ b/.vimrc.plugins_setting @@ -433,6 +433,43 @@ endfunction nnoremap quickrun#is_running() ? quickrun#sweep_sessions() : "\" 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 q :close + +" カーソル下の単語を英辞書る +nnoremap ej :Ref webdict ej + +" 辞書定義 +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 "------------------------------------ @@ -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 "------------------------------------ diff --git a/.zshrc.osx b/.zshrc.osx index 50e86f1c5..64cefa78c 100644 --- a/.zshrc.osx +++ b/.zshrc.osx @@ -81,7 +81,7 @@ export PATH="/usr/local/heroku/bin:$PATH" # Ruby # if [[ -s /Users/ozaki/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi export RBENV_ROOT=/usr/local/var/rbenv -if which rbenv > /dev/null 2&>1 ; then eval "$(rbenv init -)"; fi +if which rbenv > /dev/null 2>&1 ; then eval "$(rbenv init -)"; fi export REFE_DATA_DIR=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/share/refe diff --git a/README.md b/README.md new file mode 100644 index 000000000..f342f4115 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# dotfiles +[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/yuroyoro/dotfiles?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) \ No newline at end of file