Skip to content

Instantly share code, notes, and snippets.

@scajanus
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save scajanus/9560d420bafaaed4c303 to your computer and use it in GitHub Desktop.

Select an option

Save scajanus/9560d420bafaaed4c303 to your computer and use it in GitHub Desktop.
"In .vimrc:
let $VIMHOME=expand('<sfile>:p:h')
function! ColorschemeAfter()
let l:path = $VIMHOME . "/after/colorscheme/" . g:colors_name . ".vim"
if filereadable(l:path)
exec "source " . l:path
end
endfunction
augroup colors
autocmd!
au! ColorScheme * call ColorschemeAfter()
augroup end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment