t9md / vim-choosewin

Land on window you chose like tmux's 'display-pane'
568 stars 42 forks source link

why nnoremap - not work #42

Open lemon0910 opened 6 years ago

lemon0910 commented 6 years ago

I'm curious why nmap - works but nnoremap not work

t9md commented 6 years ago

Since its use psuedo keymap <plug>(choosewin). It has to be re-mapped to actual implementation(it's hidden from user of plugin since it's implementation detail).

If you just use nnoremap it try to execute <plug>(choosewin) as if they are sequence of keystrokes which you never want to do I believe.