justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.18k stars 64 forks source link

dirvish_up extremly slow #239

Closed miguel9554 closed 1 year ago

miguel9554 commented 1 year ago

In vimrc I've mapped - to dirvish_up

au FileType dirvish nmap - <plug>(dirvish_up)

Using it is extremely slow, taking around 1-5 seconds to run

justinmk commented 1 year ago

Maybe a recursion issue, like you or a plugin has also mapped - and then it's triggering a loop. What does :nmap - show ?

miguel9554 commented 1 year ago

ok, this is reported

n  -             <Plug>(dirvish_up)
n  -w          * ':Rgf '.expand('<cword>').'<CR>'
Press ENTER or type command to continue
miguel9554 commented 1 year ago

That was it, just unmapped the -w and now dirvish UP works instantly. THANKS!