Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comments are highlighted #97

Closed
vutran opened this issue May 6, 2017 · 3 comments
Closed

comments are highlighted #97

vutran opened this issue May 6, 2017 · 3 comments

Comments

@vutran
Copy link

vutran commented May 6, 2017

For some reason, all my comments are highlighted like so (regardless of language), see example below:

screenshot 2017-05-06 14 59 44

I'm currently using iTerm with the provided .itermcolors with and vim color.

@joshdick
Copy link
Owner

joshdick commented May 7, 2017

This is happening because you have italics enabled, but some combination of your iTerm2 reported terminal type and terminfo database is causing italics to be displayed incorrectly.

Two solutions are:

  1. (Hopefully) fix italics by doing the following:
    1. In iTerm2 preferences, on the "Terminal" tab, for the "Report Terminal Type:" setting, select "xtern-256color" if it's not already selected
    2. Create a file somewhere on disk with the following contents:
    xterm-256color|xterm with 256 colors and italic,
      sitm=\E[3m, ritm=\E[23m,
      use=xterm-256color,
    
    1. In a shell, run tic path/to/the/file/you/just/made
    2. Quit and restart iTerm2
    3. Vim should now display italics properly

or,

  1. Disable italics by removing the g:onedark_terminal_italics setting for onedark.vim from your Vim configuration.

@vutran
Copy link
Author

vutran commented May 7, 2017

Disable italics by removing the g:onedark_terminal_italics setting for onedark.vim from your Vim configuration.

This did it. Much appreciated for the help.

@vutran vutran closed this as completed May 7, 2017
@joshdick
Copy link
Owner

joshdick commented May 7, 2017

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants