2 ms·
I had italics in vim (TERM was xterm-256color), but not in tmux (TERM was screen). Added this to ~/.tmux.conf and it works: set -g default-terminal "xterm-
by hyperpallium 7y ago
I had italics in vim (TERM was xterm-256color), but not in tmux (TERM was screen).
Added this to ~/.tmux.conf and it works:
set -g default-terminal "xterm-256color"
BTW it matters to me when using vim as a markdown viewer (esp for github readme.md).
- JdeBP 7y agoThat is the wrong thing to do. The correct terminal type for tmux is either "tmux" or "tmux-256color". Even "screen" and "screen-256color" are not perfectly correct descriptions of tmux nowadays (italics actually being a case in point); and there is no problem with importing a "tmux-256color" entry into a more-than-half-a-decade-old terminfo database. The database structure lends itself both to copying individual records and to having extra records in one's home directory. You should not be using "xterm-" anything with tmux, or with any terminal or terminal emulator that is not actually XTerm. Indeed, this mis-use is called out right at the top of the tmux FAQ. * http://jdebp.uk./Softwares/nosh/guide/commands/TERM.xml#MIS-CONFIGURATION http://jdebp.uk./Softwares/nosh/guide/commands/TERM.xml#MIS-... * https://invisible-island.net/xterm/xterm.faq.html#other_versions https://invisible-island.net/xterm/xterm.faq.html#other_vers... * https://github.com/tmux/tmux/wiki/FAQ https://github.com/tmux/tmux/wiki/FAQ