Here is a good solution that works for me: http://www.nerdyweekly.com/posts/enable-italic-text-vim-tmux-gnome-terminal/
(see section 'vim') 2014-12-30 17:10 GMT+03:00 Jens Schweikhardt <[email protected]>: > All, > > it is my understanding (and please correct me) that the cterm has no > support for italics being rendered in an italic font (or emitting the > appropriate escape sequence), i.e. > > highlight LineNr cterm=italic > > is rendered in different colors instead of using an italic font. Xterm > has support for italics for both bitmapped and rendered fonts. To test, > > printf '\033[1mBold\033[22m off\n' > printf '\033[2mFaint\033[22m off\n' > printf '\033[3mItalics\033[23m off\n' > printf '\033[4mUnderline\033[24m off\n' > printf '\033[5mBlink\033[25m off\n' > printf '\033[7mInverse\033[27m off\n' > printf '\033[8mInvisible\033[28m off\n' > printf '\033[9mStrikethrough\033[29m off\n' > printf '\033[21mDoubly Underlined\033[24m off\n' > > For way too long I use an ugly workaround to have the line numbers in > italics. > I fake them in vim with "highlight LineNr cterm=underline" and force > xterm to replace underline with italic (with the +ulit option). But that > loses the underline attribute for other items. > > Would the developers be willing to implement support for cterm=italic? > While you're at it, the faint, strikethrough and doubly underlined > would be a welcome addition as well. One more value-add over em*cs :-) > > Regards, > > Jens > -- > Jens Schweikhardt http://www.schweikhardt.net/ > SIGSIG -- signature too long (core dumped) > > -- > -- > You received this message from the "vim_dev" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
