Skip to content

Instantly share code, notes, and snippets.

@jtrim
Created February 16, 2011 15:27
Show Gist options
  • Select an option

  • Save jtrim/829557 to your computer and use it in GitHub Desktop.

Select an option

Save jtrim/829557 to your computer and use it in GitHub Desktop.
Sets a random color on startup and maps :Rc to cycle random colors
function! VimRandomColor()
ruby << RUBY
colors_i_like = %w( BlackSea Jammy Lettuce Maroloccio Zmrok Baycomb Brookstream )
Vim.command("color #{colors_i_like.shuffle.pop}")
RUBY
endfunction
:command! Rc :call VimRandomColor()
:call VimRandomColor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment