What is netrw function for up one level, how can I call it in my own function?
After installing a new ruby I had to reinstall vim to get it working again. But now netrw has some issue where if I press
- to go up one level, it goes up a level and then starts visual mode such that I can't just make it go up another level without
Esc every time.
I have an idea for a hacky solution, but I don't know what the function netrw uses to go up a level is, and I don't want to emulate it by searching for line .. and pressing enter, since then netrw won't remember my place I think. Incidentally I have a shortcut for opening Rex, but undoing it doesn't fix the problem.
vim -u NONE then
:so $VIMRUNTIME/plugin/netrwPlugin.vim then
:E will make it behave, but I don't have any clue where in my vimrc or plugins something could be going wrong. For now I think if I know the uponelevel function I could use it as a good band aid to the problem.
autocmd filetype netrw call NetrwMapping()
noremap <buffer> - -
" if &ft ==# "netrw"
" exe "-"
" Like :Ex, but put curson on file you opened from.
nno - :call OpenExplorer()<CR>