Created
September 3, 2016 04:02
-
-
Save ryotako/41f7f998ade509a1c8334859a011ae68 to your computer and use it in GitHub Desktop.
unite-colorschemeをランダムな位置から起動
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
" カラースキーム一覧のランダムな位置に移動 | |
" 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
移動に描画が追いつかないのか,これはたまに失敗する
これっぽいプラグインのcolocolo.vimが便利