Colorscheme change when filetype changes
问题 Is it possible to change the colorscheme in Vim when I open a .vim, .htm, .html, .xml or the _vimrc file? (also change colorscheme when I switch to an already open file with above extension) This is what I want my vim to do: file = txt or a new (not saved) buffer: colorscheme1 (default colorscheme) file = vimrc, vim, html, htm: colorscheme2 I noted also that my vim doesn't detect all filetypes. Text files are not recognized as text file. ps: If this is not possible would it be possible to