Search code examples
vimnetrw

vim / file explorer: make browsing directory the current directory


I'm starting to use vim's native explorer (:E). My doubt: when I press c to "make browsing directory the current directory" nothing happens.. When I used nerdTree and did the same operation (:NERDTreeCWD), that directory was placed at the top of the exporer and the directories upper were "hidden".

It just seems pressing c is not doing anything..

NOTE: Im using the tree view on explorer, instead of the default one. I pressed i to change the view.

Im using 7.4.52


Solution

  • The netrw command works different than NERDTree's. It doesn't apply to the directory under the cursor, but to the one currently being browsed. So if you want to make a subdir the current one, first go into it (via <Enter>), then press c.