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

how to focus non-popup window when a floaterm instance has been opend?

Open D0ot opened this issue 3 years ago • 5 comments

Just like the effect in README: Alt text

D0ot avatar Apr 19 '21 07:04 D0ot

You can use <C-\><C-n> to go to normal mode, and then use <C-w>w to focus on different windows. This will work for both vim and neovim.

I have tried <C-w>N in default :terminal in vim, this could also bring you back to normal mode, but it's not work in neovim.

The instruction of keymap is also mentioned what are <Fn>s mapping for.

alacine avatar May 24 '21 04:05 alacine

map <Esc> with <c-\><c-n> like below

tmap <Esc> <c-\><c-n>                            --for vim
vim.cmd([[ tmap <Esc> <c-\><c-n> ]])             --for neovim

now you can press ESC and do things as you do in normal mode, for example, you can press <C-w><C-w> and it will do what you asked in question

shaeinst avatar Jul 14 '21 19:07 shaeinst