netrw is a network file editing plugin for the vim text editor.
Questions tagged [netrw]
123 questions
3
votes
1 answer
How to emulate key presses in vim script
my question is similar to this one https://superuser.com/questions/277051/how-can-i-emulate-key-presses-on-vim-startup
I'm using the plugin netrw in my vim instead of nerdtree in that question. I add the following line to enable netrw…

Rxxxx
- 706
- 7
- 7
3
votes
2 answers
How do I grep in vim netrw?
How do I do a grep in netrw in Vim? ctrl-p can be used in this way, is there a similar plugin for grep?
E.g., when I'm in a directory, I want a list of files containing this or that keyword.

Olle Härstedt
- 3,799
- 1
- 24
- 57
2
votes
2 answers
How can I temporarily disable Netrw so I can have Telescope at startup?
In my current setup, if I enter neovim with nvim dir, instead of opening with Netrw, I get the :Telescope find_files prompt. To achieve that, I have to disable Netrw, or it opens in the background. Here's the configuration to achieve this:
--…

itxp
- 35
- 1
- 4
2
votes
1 answer
When in Explore window of vim, window navigation mapping stops working
I use the following vimrc configuration to navigate between panes:
" easier window navigation
nnoremap
nnoremap
nnoremap
nnoremap
This works fine with the exception when I'm in a…

LeoR
- 666
- 1
- 6
- 20
2
votes
1 answer
When opening a directory with vim, why does attempting to select text with the mouse gives the error "E21: Cannot make changes, 'modifiable' is off"?
If I run evim foo, where foo is a directory, I get a buffer that looks something like
" ============================================================================
" Netrw Directory Listing (netrw v156)
" …

Chris Henry
- 55
- 5
2
votes
1 answer
How do I automatically close the netrw pane after having executed :Vexplore and opened a file in a new buffer?
What happens now: When I'm in Vim, and execute the :Vexplore command, a new pane appears where can I browse files using netrw. When I open a file in the netrw pane, it opens in the right pane (so not in the netrw pane) like I configured it using let…

Max
- 67
- 6
2
votes
1 answer
How do I change the vertical bar in netrw?
I just want to know if there is a way for replacing the | glyph with │ (notice that the second one is taller) in order to make a continuous vertical line in netrw...
I successfully replaced it in vim's split lines but I haven't found the way to do…

jmm
- 147
- 2
- 15
2
votes
1 answer
Netrw open file in the netrw buffer
When I execute :Vex or something similar the netrw buffer open which is perfectly fine. However I want to open a file, chosen from netrw, in the netrw buffer that I opened with the :Vex command. Is this possible?

Tom Stock
- 1,098
- 1
- 12
- 26
2
votes
0 answers
Netrw behavior, new split under modified vsplit
I used to use Nerdtree but I am switching to Netrw. In my .vimrc I have:
let g:netrw_browse_split = 4
let g:netrw_altv = 1
autocmd VimEnter * Vex
autocmd VimEnter * set winfixwidth
The Behavior currently is that when I press enter the file will…

slothropbodine
- 78
- 4
2
votes
2 answers
Vim netrw_list_hide doesn't behave like a normal regexp
I'm trying to hide Python's __pycache__ directories in Vim's Netrw by setting:
:let g:netrw_list_hide = '^__pycache__$'
The value of this variable is supposed to be a regexp, yet the above pattern doesn't hide the __pycache__ directories. Setting…

Dun Peal
- 16,679
- 11
- 33
- 46
2
votes
1 answer
How to jump back to netrw when splitbelow is on
If I open a file in a current directory using netrw and then reopen the netrw using :Sexplore the netrw window opens below (I have splitbelow set), but the cursor remains in the file being edited and I cannot move to the netrw window using CTRL-W…

Maciej Wozniak
- 1,174
- 15
- 27
2
votes
3 answers
VIM + netrw: open multiple files/buffers in the same window
I have recently switched to VIM using NERDTree and python-mode. As NERDTree seems to have a conflict with python-mode and breaks my layout if I close one out of multiple buffers, I decided to switch to netrw since it is shipped with VIM anyway.
But…

Cord Kaldemeyer
- 6,405
- 8
- 51
- 81
2
votes
2 answers
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…

tirenweb
- 30,963
- 73
- 183
- 303
2
votes
1 answer
vim: netrw to skip searching directory
When use :Ex to search files under a current project, I would like to search to skip certain directories. The netrm document says that "g:netrm_list_hide" option can be used to achieve this, but my experiments with the options shows it only applies…

Gang Liang
- 793
- 1
- 9
- 19
2
votes
1 answer
How to prevent directory listing of netrw to appear in buffer
I use vim netrw for opening/editing files through browsing the directory hierachy.
I also often open files browsing through the bufferlist with the :bn & :bp command.
So my questing is: Is there a way to prevent that the netrw directory listing…

v0id
- 73
- 1
- 5