justinmk / vim-dirvish

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

[question]: purpose of "forcing normal mode" in filetype normal mode mapping #242

Open CrispyDrone opened 11 months ago

CrispyDrone commented 11 months ago

I just have a simple questiona about what the purpose is of <C-\><C-n> in this normal mode mapping? We're already in normal mode, and by using <nowait> I assume it's also not possible to exit normal mode before the mapping would apply?

https://github.com/justinmk/vim-dirvish/blob/babbf69f7bb5274f0461e04a59d3e059bee27314/ftplugin/dirvish.vim#L38-L39

Thanks!

edit: Oh, I just realized that for versions of vim 703 or older s:nowait is empty, so maybe in those cases it could be possible to leave normal mode.

justinmk commented 11 months ago

That might be an oversight. Is it causing an issue?

CrispyDrone commented 11 months ago

I've been using vim-dirvish for a couple of years and haven't experienced any issues. I was just curious :)