1

I'm trying to properly set the airline plugin to work with my ConEmu and in the GUI version (this is on Microsoft Windows).

With gVim, there is no problem. Please look at the screenshot. I put all my custom configuration there for this plugin. I have no idea, why this doesn't work with the ConEmu? How can I fix that?

Enter image description here

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
lkurylo
  • 1,621
  • 33
  • 59
  • 1
    Same as [vim-powerline](http://stackoverflow.com/q/23446550/1405560). You need to ask plugin's author why they are not using xterm sequences... – Maximus May 12 '14 at 06:52
  • 1
    What do you mean with the xterm sequences? AFAIK both airline and vim-powerline excepts 256 colors to work. And you also have to use patched font which contains additional characters or remap that characters in the Vim's configuration. – David Ferenczy Rogožan May 13 '14 at 01:00
  • 1
    @Maximus, those things work with every other terminal emulator from xterm to konsole via iTerm or even freaking ajaxterm. What about making *your* terminal emulator work like the others? – romainl May 13 '14 at 06:48
  • My terminal working as expected. Vim works perfectly with 256 color mode. So, I believe, the problem is on plugin side. But, I can't make this plugin working even in mintty. – Maximus May 13 '14 at 10:15
  • With "xterm sequences" I mean using xterm-256 color sequences of course. – Maximus May 13 '14 at 10:16
  • On windows I got it to work on the [babun](https://github.com/babun/babun), screen: [link](https://www.dropbox.com/s/6w28dzag52spgs3/babun.png). But I would really get it to work on a native win terminal, not through cygwin – lkurylo May 14 '14 at 17:03
  • try this http://stackoverflow.com/a/25073399/588759 – rofrol Oct 20 '14 at 21:13

1 Answers1

1

Set the codepage for the console first:

chcp 65001
vim.exe
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
rodpl
  • 826
  • 8
  • 12
  • I was having problems installing Hack (aka Knack patched font) from Nerd-Fonts to get vim-DevIcons working on windows and this chcp made it work!!! – Josh Peak Jan 17 '17 at 04:02
  • 1
    In ConEmu got to Settings then Startup > Environment and add `chcp 65001` – Josh Peak Jan 17 '17 at 04:49