Skip to content

Instantly share code, notes, and snippets.

@ryotako
Created September 3, 2016 04:02
Show Gist options
  • Save ryotako/41f7f998ade509a1c8334859a011ae68 to your computer and use it in GitHub Desktop.
Save ryotako/41f7f998ade509a1c8334859a011ae68 to your computer and use it in GitHub Desktop.
unite-colorschemeをランダムな位置から起動
" カラースキーム一覧のランダムな位置に移動
" 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
@ryotako
Copy link
Author

ryotako commented Sep 18, 2016

移動に描画が追いつかないのか,これはたまに失敗する
これっぽいプラグインのcolocolo.vimが便利

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment