Usage: Vexplore Effectively

So, the Vexplore team in vim opens up a nice little directory browser on the left.

But how do I open a file from this sidebar in the main window on the right?

It can be assumed that there is a simple comparison for him, but I can not find it.

+6
source share
5 answers

I think you want o or P

Also, see the documentation, for example

 :he netrw-p11 
+7
source

Turns out it's just one line in .vimrc:

 let g:netrw_browse_split=4 " Open file in previous buffer 

Source: http://vimcasts.org/episodes/the-file-explorer/#comment-45366660

+5
source

This is the same command that you would use to go to different windows in Vim (for example, in a fast or various window), everything is explained in

:help windows.txt

But the answer to your question directly:

  • CTRL w CTRL h to move to the left window
  • CTRL w CTRL l to move to the desired window

then Enter to select the file you want to open.

You might want to read :help netrw

+2
source

I'm sure you are looking for:

 :Vexplore! 
0
source

The latest netrw plugin (prior to v153f) now provides the command: Lexplore, which opens the explorer on the right side of the vim display. It sets g: netrw_chgwin, so editing takes place in the window to the right of the netrw window. You can get it from http://www.drchip.org/astronaut/vim/index.html#NETRW .

0
source

Source: https://habr.com/ru/post/897000/


All Articles