Toggling between recent buffers with ctrl-6 does not work in vimr.
However, ctrl-^ (that is, shift ctrl 6) does work..
Please see :h ctrl-6
Thanks!
I also have that. In my setup, I use tcomment.vim and the mapping for <C--> is also broken in VimR.
Hi.
It seems vim previously mapped <C-6> to 0x1E aka ^^ aka <C-^>, however now neovim gave <C-6> its own mapping.
nnoremap <C-6> <C-^> init.vim.About <C--> and 0x1F aka ^_, something similar have happened:
Vim seems to conflate ^_ <C--> <C-S--> <C-_> and <C-S-_> while neovim considers them different mappings. (Except for entering ^_ which seems to have Vim's behavior)
nmap <C--> <C-_>nmap <C--> ^_^_ in VimR (by typing <C-k><S-u><S-s> in sequence)I'm not sure if this is something VimR should fix by itself, but I did a little branch which is a bit more similar to what vim does here
Thanks! That's one great explanation! I will be sure to incorporate those fixes in my config. One thing of note, though, is that NeoVim running in the console has correct mappings for both <c-6> and <c--> for me.
BTW, how can I detect that I'm running VimR?
Right. AFAIK, terminal emulators capture key combinations and send their corresponding control codes.
(At least, this xterm documentation mentions it, you can search for CTRL-_ there)
It did fix <c-6> for me. As far as tcomment goes, I switched over to using gc{motion}.
@nhtzr Ctrl-6 seems to be quite popular :) I think it'd be nice if we include your branch in develop.
PS. BTW you can now push your branches directly to https://github.com/qvacua/vimr. This way it's much easier to try out and review your branches in the IDE. :)
Most helpful comment
Hi.
It seems vim previously mapped
<C-6>to0x1Eaka^^aka<C-^>, however now neovim gave<C-6>its own mapping.nnoremap <C-6> <C-^>init.vim.About
<C-->and0x1Faka^_, something similar have happened:Vim seems to conflate
^_<C--><C-S--><C-_>and<C-S-_>while neovim considers them different mappings. (Except for entering^_which seems to have Vim's behavior)nmap <C--> <C-_>nmap <C--> ^_Note: You will need to use digraphs for typing
^_in VimR (by typing<C-k><S-u><S-s>in sequence)I'm not sure if this is something VimR should fix by itself, but I did a little branch which is a bit more similar to what vim does here