When using Gvim on Linux I can use :!ls
to list files and directories 'in-line' in Gvim to navigate around the file structure and open files.
However, on Windows when using :!dir
, a cmd window opens listing the files there. This is fine, but not as convenient as the in-line :!ls
version. Is there a way to emulate this behavior with the Windows version of gvim?
:!ls
would be to just use:edit .
(or:split .
,:tabedit .
, etc.). Vim includes a file manager plugin by default (netrw), which makes it much easier to do operations like opening files, etc. There are also some alternatives around in case you don't like netrw (e.g. NERDTree, dirvish, many more).