It looks like <C-Space> in mintty is hard-coded for <C-@> always, and
there is no way to disable it. The consequence is that error message
is showed when <C-Space> is pressed right after vim is opened.
It would be nice if <C-Space> mapping can be supported. At least, it
can be disabled, as
inomap <C-Space> <Nop>
Thanks
Sean
I don't understand. Is someone forcing you to press Ctrl+Space?
> It would be nice if <C-Space> mapping can be supported. At least, it
> can be disabled, as
> inomap <C-Space> <Nop>
Just map ^@. No, I don't know what the vimrc syntax for that is.
Andy
In case someone asks for how <C-Space> is mapped for MinTTY console
vim,
I am copying the correct syntax below (working code snip from VimIM)
" ---------------------------------------
function! s:vimim_ctrl_space_mapping_on()
" ---------------------------------------
if s:vimim_ctrl_space_to_toggle > 0
if has("gui_running")
nmap <C-Space> <C-Bslash>
imap <C-Space> <C-Bslash>
elseif has("win32unix")
nmap <C-@> <C-Bslash>
imap <C-@> <C-Bslash>
endif
endif
endfunction
Thanks Andy. It saves me lots of headache.
Now, from end-user point of view, it is the same:
<C-Space> works the same way for gVim on Windows and vim under WinTTY
console.
Sean