Closed thevan96 closed 2 years ago
say exactly what you tried, in code
let g:loaded_netrwPlugin = 1
command! -nargs=? -complete=dir Explore Dirvish <args>
command! -nargs=? -complete=dir Sexplore belowright split | silent Dirvish <args>
command! -nargs=? -complete=dir Vexplore leftabove vsplit | silent Dirvish <args>
I want to explore the folder where the current file is. Instead root project
command! -nargs=? -complete=dir Explore exe 'Dirvish '.(empty(<q-args>)?'%':<q-args>)
That work, thank you.
I remap dirvish like netrw: Explore, Vexplore. But using it with no arguments does not show the file's directory we are editing, instead of the folder root.
How to remap Explore, Vexplore when using it with no arguments will show the directory of the file we are editing?