Closed scottming closed 2 years ago
I can't reproduce the issue, <c-w>l
shouldn't change the position of the window, maybe your other plugins are causing the issue, use the minim config, or remove the plugins to confirm which plugin is causing the issue.
.config/nvim/init.vim
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Initialize plugin system
call plug#end()
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>L
I can reproduce this problem with this small config on macOS when use <C-l>
.
<C-w>L
will always move any vim window, you should use <c-w>l
When I configure the following shortcuts
This is my coc config:
my explorer goes off as soon as I do a few more left/right moves(ctrl-l and ctrl-h).