Achei um código bacana para o vim.
Este código altera o tema instantaneamente ao precionsar um atalho – no nosso caso F8.
sudo pico /usr/share/vim/vimrc
(usei o pico pra não acontecer de dar algum erro. Nada de mais, só prevenção mesmo.
)
let themeindex=0
function! RotateColorTheme()
let y = -1
while y == -1
let colorstring = "#blue.vim#elflord.vim#evening.vim#koehler.vim#murphy.vim#pablo.vim#ron.vim#"
let x = match(colorstring,"#",g:themeindex)
let y = match(colorstring,"#",x+1)
let g:themeindex = x+1
":echo x y g:themeindex
if y == -1
let g:themeindex = 0
else
let themestring = strpart(colorstring,x+1,y-x-1)
echo("Setting Theme to-> ".themestring)
return ":so $VIMRUNTIME/colors/".themestring
endif
endwhile
endfunction
Aqui vai o nosso atalho.
map <F8> :execute RotateColorTheme()
http://www.vim.org/tips/tip.php?tip_id=211