set nocp set autoindent set cindent set cinwords=if,else,while,do,for,switch set background=dark set showmatch set ruler hi Normal guifg=black guibg=white set tabstop=4 set shiftwidth=4 set autoread set is hls showmatch set modelines=3 colorscheme koehler syntax on highlight SpellErrors guibg=Red guifg=Black let themeindex=0 function! RotateColorTheme() let y = -1 while y == -1 let colorstring = "#default.vim#koehler.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 map :execute RotateColorTheme() :command! -nargs=* Make make | cwindow 3 map :Make map ggVGg?