<Leader>r でファイルを実行する設定はそのままに、 <Leader>t ではテストを実行できるようにしてみた。 " キーマップの設定 nnoremap <buffer> <silent> <Leader>t :<C-u>QuickRun -mode n -type test:<C-r>=&filetype<CR><CR> " テスト用の設定変数 " データ構造は g:quickrun_config と同じ let s:quickrun_test_config = {} " D言語の設定例 let d_type = copy(g:quickrun#default_config['d']['type']) if d_type != '' let s:quickrun_test_config[d_type] = copy(g:quickrun#default_config[d_type]
かわいい。 [quickrun-hook] "unite-hook-u-nya- {{{ let s:hook = { \ "name" : "u_nya_", \ "kind" : "hook", \ "index_counter" : 0, \ "config" : { \ "enable" : 0 \} \} function! s:hook.on_ready(session, context) let self.index_counter = -2 endfunction function! s:hook.on_output(session, context) let self.index_counter += 1 if self.index_counter < 0 return endif let aa_list = [ \ "(」・ω・)」うー!", \ "(/・ω・)/にゃー
元ネタ http://d.hatena.ne.jp/ruedap/20110225/vim_php_phpunit_quickrun http://vim-users.jp/2010/09/hack172/ Perl スクリプトを書く時は テストランナーに Prove を使うのでそっちを設定する。 augroup QuickRunUnitTest autocmd! autocmd BufWinEnter,BufNewFile *test.php set filetype=php.unit autocmd BufWinEnter,BufNewFile test_*.py set filetype=python.unit autocmd BufWinEnter,BufNewFile *.t set filetype=perl.unit augroup END let g:quickrun_co
元ネタ http://d.hatena.ne.jp/ruedap/20110225/vim_php_phpunit_quickrun http://vim-users.jp/2010/09/hack172/ Python スクリプトを書く場合は unittest を使って書くがテストランナーは nose の方が好きなのでそっちを設定する。 augroup QuickRunUnitTest autocmd! autocmd BufWinEnter,BufNewFile *test.php set filetype=php.unit autocmd BufWinEnter,BufNewFile test_*.py set filetype=python.unit augroup END let g:quickrun_config = {} let g:quickrun_config['php.
元ネタ http://d.hatena.ne.jp/ruedap/20110225/vim_php_phpunit_quickrun http://vim-users.jp/2010/09/hack172/ PHP スクリプトを書く場合は PHPUnit を使ってテストコードを書くが、PHPUnit のテストランナーより Stagehand_Testrunner の方が好きなのでそっちを設定する。 augroup QuickRunPHPUnit autocmd! autocmd BufWinEnter,BufNewFile *test.php set filetype=php.unit augroup END let g:quickrun_config = {} let g:quickrun_config['php.unit'] = {'command': 'phpunitrunner'}
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く