morhetz / gruvbox

Retro groove color scheme for Vim
13.86k stars 1.11k forks source link

Italic text #380

Open timsofteng opened 3 years ago

timsofteng commented 3 years ago

Hello. How can i set italic text with gruvbox? For example when I work with .md file I can't see itailc words....

Thanks

jakio6 commented 3 years ago

Solution from the wiki:

Most terminals don't handle italics right so gruvbox disables italics for terminals by default. But if you're using urxvt or gnome-terminal you should try setting let g:gruvbox_italic=1 before colorscheme gruvbox to enforce displaying italics

And the code piece got when search italic in the repo:

if !exists('g:gruvbox_bold')
  let g:gruvbox_bold=1
endif
if !exists('g:gruvbox_italic')
  if has('gui_running') || $TERM_ITALICS == 'true'
    let g:gruvbox_italic=1
  else
    let g:gruvbox_italic=0
  endif