public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Best way to 256 color support on Vim+Tmux+Mintty when toggling light/dark background
@ 2015-10-24 17:00 kuaf
  2015-10-24 20:23 ` kuaf
  0 siblings, 1 reply; 2+ messages in thread
From: kuaf @ 2015-10-24 17:00 UTC (permalink / raw)
  To: cygwin

Hi list,

I want a perfect Vim edit environment based on Pencil theme [1].
Toggle light/dark background without Tmux, it looked well.
The configuration involved:
- .bashrc, add custom Pencil theme by way of `echo -ne ...`
- .bashrc,  `export TERM=xterm-256color`
- .vimrc, add
    set t_Co=256
    colorscheme pencil

Even there's no problem when toggling the light/dark background.

However, toggling background looks horrible if under Tmux session,
with additional .tmux.conf that had:

    set -g default-terminal "xterm-256color"

I didn't use `set -g default-terminal "screen-256color"` because it
buggy the color render.

I am expecting who had a perfect solution for the problem?




[1]: https://github.com/reedes/https://github.com/reedes/vim-colors-pencil

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Best way to 256 color support on Vim+Tmux+Mintty when toggling light/dark background
  2015-10-24 17:00 Best way to 256 color support on Vim+Tmux+Mintty when toggling light/dark background kuaf
@ 2015-10-24 20:23 ` kuaf
  0 siblings, 0 replies; 2+ messages in thread
From: kuaf @ 2015-10-24 20:23 UTC (permalink / raw)
  To: cygwin

Self answered here.
This is an issue about 256 color support for vim background in tmux,
check the solution over
http://superuser.com/questions/399296/256-color-support-for-vim-background-in-tmux/399326#399326.

Thanks

2015-10-24 17:16 GMT+08:00 kuaf <kuaf.lee@gmail.com>:
> Hi list,
>
> I want a perfect Vim edit environment based on Pencil theme [1].
> Toggle light/dark background without Tmux, it looked well.
> The configuration involved:
> - .bashrc, add custom Pencil theme by way of `echo -ne ...`
> - .bashrc,  `export TERM=xterm-256color`
> - .vimrc, add
>     set t_Co=256
>     colorscheme pencil
>
> Even there's no problem when toggling the light/dark background.
>
> However, toggling background looks horrible if under Tmux session,
> with additional .tmux.conf that had:
>
>     set -g default-terminal "xterm-256color"
>
> I didn't use `set -g default-terminal "screen-256color"` because it
> buggy the color render.
>
> I am expecting who had a perfect solution for the problem?
>
>
>
>
> [1]: https://github.com/reedes/https://github.com/reedes/vim-colors-pencil

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-24 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-24 17:00 Best way to 256 color support on Vim+Tmux+Mintty when toggling light/dark background kuaf
2015-10-24 20:23 ` kuaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).