Add support for italics in terminal.

Set g:solarized_term_italics = 1 for terminals that support italics.
This commit is contained in:
Lifepillar
2016-05-21 14:07:05 +02:00
parent 5a5a494a15
commit 3ef08ffbdf
9 changed files with 83 additions and 8 deletions

View File

@@ -655,6 +655,17 @@ for s:solarized_background in ["dark", "light"]
call s:put("hi! pandocMetadata" .s:fg_blue .s:bg_none .s:fmt_bold)
call s:put("hi! link pandocMetadataTitle pandocMetadata")
"}}}
" Terminal italic {{{
call s:put('if get(g:, "solarized_term_italics", 0) != 0')
call s:put(' hi Comment cterm=italic')
call s:put(' hi gitcommitComment cterm=italic')
call s:put(' hi htmlSpecialTagName cterm=italic')
call s:put(' hi pandocComment cterm=italic')
call s:put(' hi pandocEmphasisDefinition cterm=italic')
call s:put(' hi pandocEmphasisTable cterm=italic')
call s:put(' hi pandocEmphasis cterm=italic')
call s:put('endif')
"}}}
call s:put('" License "{{{')
call s:put('" ---------------------------------------------------------------------')