Skip to content

Instantly share code, notes, and snippets.

@ryotako
Created September 3, 2016 04:02
Show Gist options
  • Select an option

  • Save ryotako/41f7f998ade509a1c8334859a011ae68 to your computer and use it in GitHub Desktop.

Select an option

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

ryotako commented Sep 18, 2016

Copy link
Copy Markdown
Author

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

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