0

I'm using vim in ConEmu (with cmder) on Windows, and for some reason all the text is displayed in bold.

All the text is bold in vim

It's only happening in vim, just in ConEmu the text is regular.

Text is not bold in ConEmu itself

The boldness started when I added the following section to my .vimrc in order to get color schemes working under ConEmu (based on the docs):

if !has("gui_running")
    set term=xterm
    set t_Co=256
    let &t_AB="\e[48;5;%dm"
    let &t_AF="\e[38;5;%dm"
endif

If I remove this section, then the text is not bold any more (but the color schemes are not working).

The color scheme I'm using does not matter, the text is bold no matter which one I use.

Update: I just noticed by running :version that some text is actually not bold, when the version info is printed:

The version info is not completely bold

It seems to be pretty random what is bold and what isn't, and it even changes if I resize the window.

Update 2: @Maximus mentioned that I can log the raw ANSI input ConEmu receives, and I tried to do that.

I opened a test file which contains the text "This is a dummy text.", which is displayed in bold:

enter image description here

And this is the input I see in the logs: [48;5;0mThis is a dummy text.
I'm not sure how to interpret this. I'm looking at the description here, based on which 5 should mean "Blink on", but the text is not blinking, it's just bold, which should be the code 1. Anyone knows better how to interpret this?

I'm using PowerShell ConEmu version: 161206 [64] stable (and I also tried it with the latest alpha, 171217)
VIM version: 8.0 (2016 Sep 12, compiled Nov 11 2017 23:02:03), MS-Windows 64-bit console version, Included patches: 1-1290

Mark Vincze
  • 7,737
  • 8
  • 42
  • 81
  • ConEmu version? Vim version? Terminal modes? – Maximus Dec 22 '17 at 23:46
  • @Maximus Updated the question with the version numbers, and also with an another screenshot, because I realized that some text is not actually bold for some reason. You also mention **Terminal modes**. Where can I find that information? – Mark Vincze Dec 23 '17 at 12:01
  • Status bar -> Terminal mode. – Maximus Dec 23 '17 at 17:47
  • You are running a year old build! [Old Builds](https://conemu.github.io/en/OldBuild.html) – Maximus Dec 23 '17 at 17:48
  • @Maximus I'm using the latest stable version (https://www.fosshub.com/ConEmu.html). – Mark Vincze Dec 23 '17 at 22:03
  • @Maximus but I tried it now with the latest alpha, 171217, and I'm experiencing the same behavior. – Mark Vincze Dec 23 '17 at 22:08
  • ConEmu has an option to dump all ANSI sequences to file. https://conemu.github.io/en/SettingsFeatures.html#id2679 – Maximus Dec 24 '17 at 01:49
  • @Maximus thanks for the tip, I did that, but I'm at a bit of a loss about how to interpret the output. I added the details to the end of the question. – Mark Vincze Dec 24 '17 at 12:21
  • Upload the log file to gist without changes. The snippet you provided is not enough. – Maximus Dec 24 '17 at 20:33
  • @Maximus I uploaded the full log [here](https://gist.github.com/markvincze/5541d0029c13eea8520f88b8dda464f1). It is the logs for a short session, only starting a new ConEmu window, opening the `test.txt` file with `vim`, and exiting. – Mark Vincze Dec 28 '17 at 13:16

0 Answers0