How can change from highlight to default especially ?
ma-chang opened this issue · 2 comments
I'm not sure what exactly you want to change, but if it's the reverse color, that's because your terminal doesn't support (or isn't configured correctly to support) italics. Try let g:dracula_italic = 0
before loading the colorscheme.
If on the other hand you want to simply disable certain highlights, that's harder, but here's how I create a "minimal" colorscheme from an existing one:
" TODO rewrite with `hlset()` when patch 8.2.3578 is available
function s:minimal_colors()
" edit this list with groups you want to clear
for group in ['Identifier', 'Function', 'Statement', 'Conditional', 'Repeat',
\ 'Label', 'Operator', 'Keyword', 'Exception', 'PreProc', 'Include',
\ 'Define', 'Macro', 'PreCondit', 'StorageClass', 'Structure',
\ 'Typedef', 'Tag', 'Debug']
execute 'highlight clear' group
endfor
endfunction
if has('autocmd')
augroup minimal_syntax
autocmd!
autocmd ColorScheme * call s:minimal_colors()
augroup END
endif
Otherwise you could try disabling syntax highlighting (which won't disable UI colors like line numbers) with :syntax disable
(or never putting :syntax enable
in your config).
Lastly under :help dracula-customization
there is a documented method of customizing any of the highlighting you want.
@benknoble Thank you for replying so fast!
I tried insert let g:dracula_italic = 0
before loading the colorscheme in .vimrc and fixed it.
If I will have some other problem in dracula/vim, I use :help dracula-customization
to try to fix by myself.