Open hakunin opened 6 years ago
I met the same question as @hakunin .
Neovim 0.4.0, firstly run PlugInstall, it works perfectly for resizing and splitting, but after quit and reopen nvim, it reports errors.This is my config:
Plug 'kana/vim-submode'
call submode#enter_with('WindowsMode', 'n', '', '
I just downloaded the raw submode.vim file and saved into autoload directory, it works now. @hakunin
Got the same issue as @hakunin. Even download the raw submode.vim into autoload directory, unluky for me. Then use another similar plugin nvim-libmodal, and config like the follow works:
" Mode windows: Implement feature 'dstein64/vim-win'
nnoremap <Leader>w :call <sid>windowsMode()<cr>
let s:windowsModeRecurse = 0
let s:windowsModeCombos = {
\ 'j': 'wincmd j',
\ 'k': 'wincmd k',
\ 'h': 'wincmd h',
\ 'l': 'wincmd l',
\ 'H': '3 wincmd >',
\ 'L': '3 wincmd <',
\ 'J': '3 wincmd +',
\ 'K': '3 wincmd -',
\ 'r': 'wincmd r',
\ 'x': 'wincmd x',
\}
" define the BarMode() function which is called whenever the user presses 'z'
function! s:windowsMode()
let s:windowsModeRecurse += 1
call libmodal#Enter('windows' . s:windowsModeRecurse, s:windowsModeCombos)
let s:windowsModeRecurse -= 1
endfunction
Doesn't seem to work with neovim, not sure why.
Tried installing both with "Plug" and "Plugin", both went fine.