Questions tagged [netrw]

Questions about the Netrw plugin which adds directory listing to Vim, and allows you to open files over the network (ftp, http, scp, etc).

The Netrw it standard plugin of Vim that give access to the folder structure.

193 questions
22
votes
4 answers

How can I close the Netrw buffer?

How can I close the Netrw buffer? I tried both :bd and :bw and neither work.
Tyler Durden
  • 2,091
  • 2
  • 23
  • 42
10
votes
2 answers

How to make netrw start with dotfiles hidden?

netrw has a gh command that toggles dotfile hiding. It is off by default. I would like it to be on by default. How do I do that?
Andrew
  • 393
  • 2
  • 10
9
votes
2 answers

copy a file in netrw

I often find the need to start a new file by making a copy of another similar file within the same directory. netrw has several commands for copying files from one directory to another (ie: :h netrw-mc:), but there appears to no means to copy a…
user590028
  • 211
  • 2
  • 6
9
votes
10 answers

Toggle explorer window

neovim 0.2-dev :Lexplore opens up explorer window and entering :Lexplore again toggles it. However, if I interact with the explorer window(i.e. expand a directory), then typing :Lexplore opens up another explorer window instead of closing the…
Sayem
  • 201
  • 1
  • 2
  • 4
7
votes
1 answer

Find and highlight current file in netrw

I want to use netrw as a project drawer. Not for opening/closing files or general file management, but only as a way to get a visual overview over the project structure. I open netrw automatically when I open gVim, and keep it open to the left. When…
Tobbe
  • 171
  • 5
6
votes
3 answers

How can I move netrw's default keybindings to other keys?

Let's say I'm a terrible person and I'm thinking about remapping to do what : normally does (start command-line mode). Vim's built-in netrw plugin also remaps to open the selected directory or file. Specifically, it appears to map it…
user72
6
votes
1 answer

Automatically close netrw after opening a file

I would like to automatically close the netrw window when I open a file. I've found a similar question (NERDTree How to open a file and automatically close the explorer buffer), but it refers to NERDTree - not netrw. This is my .vimrc file: let…
Gilad Novik
  • 161
  • 1
  • 4
5
votes
2 answers

How can I stop 'Obtaining '?

I am new to vim, and I use netrw as a file explorer. Frequently hit shift-P to open a file in a buffer. Sometimes I accidentally hit shift-O, and netrw will start obtaining the file. How do I cancel cancel that? Two changes I see happen are a new…
TMB
  • 203
  • 1
  • 9
5
votes
2 answers

How to display file size in netrw in a human readable way?

When using netrw, (by :Vex or :Sex), the files can be displayed in different ways by pressing "i". And there is a view that the sizes of the files are displayed. However, the sizes are in bytes. Is there any way to show the sizes in a human readable…
user3813057
  • 1,451
  • 3
  • 17
  • 26
5
votes
1 answer

gx doesn't open the url and complains: netrw --No Line In Buffer--

My issue happens with the key combination gx in normal mode. The problems happens in Vim, (I have also tried in NeoVim and it correctly opens the link in firefox directly). I have a test file /tmp/go-to-stackoverflow.markdown which contains the url…
Stephane Rolland
  • 1,857
  • 2
  • 13
  • 23
5
votes
3 answers

Is there a workaround for Vim's Netrw :bprev bug?

This didn't get much love on stackoverflow (https://stackoverflow.com/q/48269793/2512141), but I think it's important so I'm reposting here. I think this could be a major barrier to people using Vim's buffers as they're intended, and consequently…
BitPusher16
  • 181
  • 4
4
votes
2 answers

Is there a way to search files with netrw similar to find command in linux?

Is there a way to search files with netrw similar to find command in linux? So in command line I can do find . -name "pattern" Is there something similar in netrw?
4
votes
2 answers

How to Get Netrw to exclude certain files?

I have vim save my undo history in files named something like .filename.js.un~, but I don't want this cluttering up my list of file in vim (in Netrw). Is there a way to exclude all files with a certain file extension in Netrw?
aharris88
  • 1,847
  • 2
  • 17
  • 22
4
votes
1 answer

How to mark multiple files in netrw?

I tried using MF *.h for example to select all the files in the current directory that end with .h but this doesnt work. What are good ways to mark multiple files using netrw?
mbl
  • 319
  • 1
  • 8
4
votes
0 answers

netrw bug? cannot copy marked file to target

When I try to do the following on Windows 10: go to a directory, set it as the target directory using mt go to a different directory, mark a file in that directory using mf use mc to copy the file to the target directory I get the following…
mbl
  • 319
  • 1
  • 8
1
2 3 4 5