t-b/igor-unit-testing-frameworkに関する自分用のメモ.
pdfマニュアルを参考にしているが翻訳ではない.
このパッケージはIgor ProプロシージャやXOPの作成者に単体テストのユーティリティを提供する. パッケージは
- アサーション
- テストケース
t-b/igor-unit-testing-frameworkに関する自分用のメモ.
pdfマニュアルを参考にしているが翻訳ではない.
このパッケージはIgor ProプロシージャやXOPの作成者に単体テストのユーティリティを提供する. パッケージは
" カラースキームをランダムに変更 | |
command! -nargs=0 Colo highlight clear | ColoColo | redraw | colorscheme |
" xでレジスタを汚さない&x連打はまとめてundo履歴に登録 | |
" haya14busaさんの記事(http://haya14busa.com/improve-x-with-vim-submode/)を参考に二行に圧縮 | |
call submode#enter_with('x', 'n', '', 'x', '"_x') | |
call submode#map('x', 'n', '', 'x', ":\<C-u>undojoin <bar> normal! \"_x<CR>") |
" switch.vim | |
let g:switch_custom_definitions = | |
\[ | |
\ { '\v^( *- *)([^ \[].*)$' : '\1[ ] \2' }, | |
\ { '\v^( *- *)\[ \](.*)$' : '\1[x]\2' }, | |
\ { '\v^( *- *)\[x\] ?(.*)$' : '\1\2' }, | |
\] |
" カラースキーム一覧のランダムな位置に移動 | |
" Gを挟んで一度最後まで描画させる | |
function! s:WanderUniteColorScheme() | |
let max_num = 735 | |
let match_end = matchend(reltimestr(reltime()), '\d\+\.') + 1 | |
let rand = reltimestr(reltime())[match_end : ] % (max_num + 1) | |
return ":\<C-u>Unite -auto-preview -vertical -winwidth=40 colorscheme\<CR>G:".rand."\<CR>" | |
endfunction |
" linewise increment {{{2 | |
map ga <Plug>(incline-inc) | |
map gx <Plug>(incline-dec) | |
vmap <expr> <C-a> mode() ==# "V" ? "\<Plug>(incline-inc)" : "\<C-a>" | |
vmap <expr> <C-x> mode() ==# "V" ? "\<Plug>(incline-dec)" : "\<C-x>" | |
vmap <expr> g<C-a> mode() ==# "V" ? "\<Plug>(incline-inc-inclined)" : "g\<C-a>" | |
vmap <expr> g<C-x> mode() ==# "V" ? "\<Plug>(incline-dec-inclined)" : "g\<C-x>" |
# Source Prezto. {{{1 | |
# if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
# source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
# fi | |
# alias prezto_update="cd ${ZDOTDIR:-$HOME}/.zprezto/ \ | |
# && git pull && git submodule update --init --recursive" | |
# function prezto_moduleinfo(){ | |
# module=$(ls "${ZDOTDIR:-$HOME}/.zprezto/modules/" | grep -v 'README' | peco) | |
# vim -R "${ZDOTDIR:-$HOME}/.zprezto/modules/$module/README.md" | |
# } |
" my unite source: beamer theme {{{ | |
let s:beamer_themes_path="/usr/local/texlive/2016/texmf-dist/tex/latex/beamer/themes/theme" | |
let s:unite_source = { | |
\ 'name': 'beamer_theme', | |
\ 'description': 'built-in LaTeX beamer themes', | |
\} | |
function! s:unite_source.gather_candidates(args, context) | |
let s:files = filter(split(system('ls '.s:beamer_themes_path)),'v:val =~# "^beamertheme\.\*\\.sty$"') | |
return map(s:files,'{ | |
\ "word": substitute(v:val[11:],"\.sty$","",""), |
" initialization | |
if !exists("g:unite_source_alias_aliases") | |
let g:unite_source_alias_aliases = {} | |
endif | |
if !exists("g:unite_source_menu_menus") | |
let g:unite_source_menu_menus = {} | |
endif | |
" memolist setting | |
let g:memolist_unite = 1 |