On Tuesday, November 5, 2013 5:34:44 AM UTC+1, Justin M. Keyes wrote:
> On Mon, Nov 4, 2013 at 5:40 PM, Bruno Sutic wrote:
>
> > Hi,
>
> > I'm using terminal vim 7.4 on OS X.
>
> > I was surprised to discover that in Terminal app, folded sections aren't displayed properly - they're invisible!
>
> >
>
> > If I open the same file (same vimrc, same colorscheme, same everything) in iTerm2, folded sections are displayed nicely. How come?
>
> >
>
> > Since I'd really like to switch back to default Terminal app, I'd like to know - what's the catch?
>
> >
>
> > I'm attaching the image of the same file shown in both Terminal and in iTerm2 (basically you can't see folded sections in Terminal app on the right).
>
> >
>
> > Here's some more info:
>
> > Colorscheme is 'desert256'
>
> >
>
> > Highlighting:
>
> > Folded xxx term=standout cterm=bold ctermfg=0 guifg=Cyan guibg=DarkGrey
>
> > FoldColumn xxx term=standout cterm=bold ctermfg=0 guifg=Cyan guibg=Grey
>
>
>
> ctermfg=0 means the foreground will be black. I presume iTerm2 has
>
> some funky color pallette installed, but the fold _should_ be hidden
>
> in both Terminal and iTerm2.
>
>
>
> This should fix your problem:
>
>
>
> :highlight Folded term=standout cterm=bold ctermfg=59 guifg=Cyan guibg=DarkGrey
>
>
>
> If you don't like the color of grey specified by ctermfg=59, try the
>
> other "grey" cterm values here:
>
>
>
> http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
Thank you for the response Justin.
I accidentally found a "clean" solution to this today.
The trick was in setting the "Use bright colors for bold text" in Terminal app options. Then, instead of black, terminal uses 'bright black' (which is gray really) for vim folds.
Now, everything is like in iTerm2!
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment