I have a setup using cygwin with midnight commander and vim. I have a proper .vimrc in my home folder, which works fine if I start up vim directly on the console. Now I also want mc to use vim, so I disabled "use internal viewer/editor". I also aliased vi to vim in my .bashrc and the alias is working properly.
The Problem is: when I open vim via mc, coloring is not working. If I manually try to enable syntax highlighting (syntax on), I get
E319: Sorry, the command is not available in this version
If I start vim directly, everything is working as it should. My .vimrc and .bashrc look the following:
~/.vimrc set nocompatible set nocp set backspace=indent,eol,start set term=xterm-256 syntax on set hlsearch set t_Sb=m set t_Sf=m set autoindent set cindent set smartindent colorscheme distinguished set t_Co=256 ~/.bashrc export EDITOR vim alias vi="/usr/bin/vim" [..other stuff..]
I've also tried to alias vi and explicitly setting the Terminal to xterm-256color, which cygwin uses in my case.
Same setup on debian is working fine though..