vim-repl icon indicating copy to clipboard operation
vim-repl copied to clipboard

Swiching from REPL

Open PISchwarz opened this issue 5 years ago • 2 comments

Describe the bug It seems I cannot switch from the REPL using my mapping for the switching. My current mapping is: nnoremap <C-J> <C-W><C-J> nnoremap <C-K> <C-W><C-K> nnoremap <C-L> <C-W><C-L> nnoremap <C-H> <C-W><C-H>

Desktop (please complete the following information): VIM-REPL, last update: 2019.8.23 Operation System: Linux Support python3: 1 Support python: 0

Additional context Since I'm quite new with VIM it might be a trivial problem...

PISchwarz avatar Mar 13 '20 05:03 PISchwarz

You can try my configuation:

tnoremap <C-h> <C-w><C-h>
tnoremap <C-j> <C-w><C-j>
tnoremap <C-k> <C-w><C-k>
tnoremap <C-l> <C-w><C-l>
tnoremap <C-n> <C-w>N
tnoremap <ScrollWheelUp> <C-w>Nk
tnoremap <ScrollWheelDown> <C-w>Nj

and you can swith from and to REPL using <C-h> and <C-l>

sillybun avatar Mar 15 '20 13:03 sillybun

Thanks for the fast reply, but sadly this didn't work at all.. maybe my .vimrc is cooked..

using the nnoremap switching to the REPL worked, but switching back didn't.. using the tnoremap no switching worked at all..

Here is my vimrc, if you have time and patience to check it, that would be great!! vimrc.txt

PISchwarz avatar Mar 15 '20 14:03 PISchwarz