Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [netrw]

Netrw adds directory listing to Vim, and allows you to open files over the network (ftp, http, scp, etc). It is a plugin bundled with Vim.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Open netrw view of directory with Ctrl-P

Is it possible to use Ctrl-P to search for directories in addition to searching for files? I want to be able to search for directories in my project in whatever mode (CtrlP, CtrlPMRU, or other) and ...
0
votes
0answers
18 views

Can NerdTree/netrw display only the files that exist in QuickFix list?

There are different ways QuickFix list is populated (make, lsp errors, search, git diff, etc). I find the QuickList extremely useful as it standardizes many outputs and gives me a way to cycle through ...
0
votes
0answers
14 views

buffer name of opened directory in netrw disappears sometimes

I usually open a directory in vim with command :e path-of-dir. Because the plugin Netrw is included by default, this will be taken over by it and a netrw window will open with the content of the dir. ...
2
votes
0answers
23 views

Cannot :Explore public ftp service (I see empty listing with ../ and ./)

The address is ftp://ftp.yandex.ru/ I tried from bash: vim ftp://ftp.yandex.ru/ After that I was asked for username and password (but this is public anonymous server), ok I entered anonymous for ...
3
votes
0answers
22 views

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?
0
votes
0answers
28 views

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 ...
0
votes
2answers
43 views

netrw's - map (up one level) broken after brew reinstall vim

Short Question: What is netrw function for up one level, how can I call it in my own function? Context: After installing a new ruby I had to reinstall vim to get it working again. But now netrw ...
2
votes
1answer
50 views

Everytime I call :Explore netrw creates a new unlisted buffer

Is there any way to stay always in the same netrw buffer after selecting a file to edit?
0
votes
0answers
24 views

Create a netrw window in each new tab created

I have the netrw plugin's g:netrw_browse_split=3 option turned on, so every time I click on a file in the explorer, it opens the file in a new tab. I was wondering if it is possible to open a new ...
0
votes
0answers
65 views

How to recover file overwritten by vim

I used the command :Texplore to rename a file in vim's file explorer. I closed the buffer that read the old file name into memory, then opened the new file name using a new instance of vim only to ...
0
votes
1answer
25 views

When openning netrw in split view, the opened buffer I'm still editing clears when I click a line number

Wondering why this happens, if it is a bug or supposed to happen? Steps to reproduce: open vim, split two windows, one with netrw and another with few lines of text (line numbers enabled). As both ...
1
vote
1answer
98 views

Lexplore and split windows

Like many, I like to browse using :Lexplore. However, as indicated by the manual, By default, :Lexplore will change an uninitialized |g:netrw_chgwin| ...
2
votes
0answers
129 views

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 ...
0
votes
1answer
85 views

Folder jumping in netrw

I'm on windows 10 with the Windows subsystem for linux. What I'd like to do with netrw is be able to jump from my home folder in Ubuntu to my home folder in windows. In Ranger I type gh and it takes ...
0
votes
1answer
47 views

Trouble with netrw ftp protocol, file won’t save

I am trying to create and edit a file remotely from my iPad using iVim to my Linux box which is on the same network. I am trying to use the ftp protocol from the netrw utility that comes with vim. I ...
1
vote
1answer
150 views

Replace netrw window when opening a file

I'd like to be able to :Sex when editing a file, select a file, press CR, and have that new split populated with the file I just selected. Is there an option for this? I think I became used to this ...
1
vote
1answer
51 views

How could I explore the files when using netrw to edit remote files

I can use :Explore to go through the current directory and open new files when I use vim locally. But when I use netrw to edit remote files, I cannot do it. For example, I opened a remote file with ...
0
votes
1answer
46 views

Enable line numbering for directories

When viewing a directory (using :Explore, for example), I would like to see line numbers. I can run :set number after opening the directory, and that works, but I can't get numbering to turn on by ...
0
votes
0answers
63 views

What does “No lines in buffer” mean when editing via scp?

I was using vim scp:// and e scp:// to edit remotes files. Sometimes I failed to open and got message --No lines in buffer--. What does mean and how I should solve?
2
votes
0answers
59 views

Jump to last position when using vim netrw to open a file

I am looking to jump automatically to the last position in any file that I open. I have in my ~/.vimrc file: autocmd BufReadPost * ...
1
vote
2answers
220 views

try catch with :Rexplore

I want to be able to hit a single key to see the netrw buffer for the directory of the file I'm in. Rex will handily move your cursor to where it was previously, but only works if you opened the file ...
0
votes
0answers
53 views

Editing file on remote host using scp not working

I'm trying to edit a file on a remote host using vim scp://user@host//path/to/file However, vim just displays "Stopped" and crashes. Here is the log thats produces when I run vim -V9 scp://user@host//...
2
votes
2answers
447 views

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?
2
votes
2answers
235 views

How to make vim open two windows when opening a directory or file with netrw?

I want to achieve two effects about using the netrw plugin for vim. EFFECT ONE: I have a test directory.Here is its directory structure: MINGW64 ~/test $ ll total 1 drwxr-xr-x 1 uooki2 197121 0 一月 ...
1
vote
2answers
78 views

Netrw multiple files selection

Is there a way to select multiple files not one by one (with mf)? I can see in the docs :MF command that do nothing for me. (:MF *.vim) I also have tried mr supplying it *.vim$ in the folder full of ...
4
votes
1answer
52 views

How to display rwx permissions with netrw?

In vim, how can I display the rwx (i.e., permissions) of files and/or directories using netrw? For example, I'd like to do this: vim :Ex (see output like ls -l) The closest thing I know is, in step ...
4
votes
2answers
589 views

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-...
1
vote
1answer
77 views

Netrw error: “Illegal PORT command”

I installed Vim 8.1.1 on Windows 10. My _vimrc in C:\Users\Maggyero has the following lines: set spell set spelllang=en,fr set spellsuggest=5 When I open Vim, I get the following message: Alerte ...
1
vote
0answers
63 views

netrw freezes if vim subwindow includes “beefy” network drive

When one of my vim subwindows is opened to a network drive with many zip files, switching to that subwindows causes vim to hang for 10 seconds or so. The Windows Task Manager shows sustained ...
-1
votes
1answer
380 views

When provided folder, open default empty screen with CWD set to folder

At the moment when I run nvim path/to/folder/ it opens up the netrw window for it (more accurately, the Dirvish window for it), I'd like this to not be the case. Ideal behaviour is that when I do ...
1
vote
2answers
149 views

How to enable disabled movement keys in netrw?

Recently I started using and learning Vim. I turned off movement keys in my .vimrc file like this: noremap <Up> <NOP> noremap <Down> <NOP> noremap <Left> <NOP> ...
5
votes
3answers
257 views

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 ...
2
votes
1answer
74 views

netrw: This security scheme is not implemented

Since some days ago I stumbled upon an annoying situation every time I tried to edit some files on a server with Vim. It won't open the files, and a split appeared on each buffer saying: This ...
1
vote
1answer
429 views

Netrw how to hide line?

My Netrw config here. let g:netrw_banner = 0 let g:netrw_liststyle = 3 let g:netrw_browse_split = 4 let g:netrw_altv = 1 let g:netrw_winsize = 25 Just i want to hide "|" and "/". But how? I try :...
8
votes
3answers
3k views

How can I close the Netrw buffer?

How can I close the Netrw buffer? I tried both :bd and :bw and neither work.
2
votes
1answer
631 views

Change to a specific directory in :Explorer

How do I change the directory when I'm already in :Explorer? Sometimes I open it up by saying :vs . and from there I want to go to ~/vim/ or something. I'm not sure how to do that without traversing ...
1
vote
1answer
43 views

How to make netrw ignore new local files?

I've set up an autocmd to automatically create directories of the filepath I'm writing to: au BufWritePre,FileWritePre * call <SID>EnsureDir(expand('<afile>:p:h')). This prevents creating ...
1
vote
1answer
182 views

Focus on file when when opening when permanent window for file explorer is enabled

I have a permanent window for file explorer enabled by netrw_altv=1 option. The problem is that when I run vim with file or directory as an argument the window with file explorer is focused. How can I ...
4
votes
2answers
185 views

How to escape from file browsing mode?

I just found out that we can use :e . to enter the browsing mode and then can choose file what we like. But I don't know how to get back to already opened file without choosing it again. I tried &...
3
votes
3answers
4k views

Open multiple files in tabs from Explore mode

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab? Edit: I ended up using a function proposed by Jair López, because it works pretty ...
7
votes
1answer
190 views

Is there a way to edit secure data in vim without accessing the filesystem?

I am interested in using vim to edit a "secure" file, one that is stored encrypted elsewhere (say, somewhere in the cloud), and should not be written as plaintext to the local disk. So the sequence of ...
3
votes
1answer
2k views

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 ...
4
votes
2answers
354 views

how to stop vim suspending when using gx

When I press gx over a link in vim, it opens it in an external application, when it does this it also suspends Vim. How do I prevent it from suspending Vim, so that I can use Vim while browsing ...
0
votes
0answers
51 views

netrw: ftplugin double loaded?

I notice an annoying stutter when opening directories. Just a split second, but it's kind of a problem if I'm navigating the directory tree and it hesitates each time I open a different directory. I ...
1
vote
0answers
392 views

netrw expand folders - strange behaviour

I'm getting very strange behaviour when I try to expand the listing of a folder by pressing enter. Take the following screenshot Currently, I have file 2.1 open. But when I press Enter on 1/ to ...
1
vote
1answer
273 views

Is it possible to clone a directory with netrw?

When I mark a directory with mf, then use mc to copy into the target directory, it copies the contents only rather than the directory itself. I know I could make a new directory with d, then copy the ...
3
votes
1answer
817 views

Netrw tree listing style opening files in other directories creates new empty files in current directory

When using netrw with the tree style listing (netrw_liststyle = 3), if I expand a directory, open a file in that directory, then try to open a file above that directory, it creates a new empty file in ...
2
votes
1answer
732 views

Update netrw to newer version [duplicate]

I use Vim from this ppa http://ppa.launchpad.net/jonathonf/vim/ubuntu which includes netrw v156 How can I update to a newer netrw --> Do I have to remove netrw installed --> Can I simply install a ...
3
votes
1answer
296 views

How could I preserve netrw :Lexplore in Vim sessions?

I use netrw :Lexplore as my file browser and I also use vim sessions. However, whenever I open a session file, :Lexplore is closed and I have to re-open. Is there a way to keep netrw :Lexplore open ...
5
votes
5answers
2k views

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 ...