Created
February 16, 2011 15:27
-
-
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
This file contains hidden or 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
| 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