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
1
vote
0answers
9 views

netrw not open correctly, just open blank with noperm message

I am Neovim user and have serious problem with netrw I find netrw has a bug when trying to open the file, at first it only shows an empty buffer(1st picture), and right bottom corner, you can see [...
1
vote
1answer
16 views

Is it possible to view the current file content during directory navigation in vi (command line, not GUI)?

(Originally asked in a wrong place - https://stackoverflow.com/questions/63780235/is-it-possible-to-view-the-current-file-content-during-directory-navigation-in-v) I am watching this Pluralsight ...
2
votes
0answers
13 views

How can I use Vim with rmate?

TextMate 2 introudced rmate, which has become a de-facto standard for editing remote files, with multiple implementations of the remote component and client implementations for other editors, ...
0
votes
0answers
19 views

How to keep directories expanded after toggle netrw?

I have an "almost" perfect netrw workflow. With my internet search, I: Solved <C-l> problem; Splits Right/Bottom (without resize netrw); Toggle netrw (but has an issue); In my ...
1
vote
0answers
6 views

netrw ftp error (“Unknown command^M”; “Line 245:” “E517: No buffers were wiped out: 8bw!”

Until a few days ago, editing remote files worked perfectly OK, but not any more, with strange messages and error windows showing up: a) Loading remote file: When I'm trying to load a remote file with ...
3
votes
1answer
41 views

Why Netrw use rcp internally when I use scp protocol

I want to use netrw to edit remote files on my vps. Unfortunately, when I enter vim scp://cydiater_server:~/demo/sol.cpp and try to save something with :w Vim prompts me with :!rcp '/var/folders/...
0
votes
0answers
15 views

How do I prevent NetrwTreeListing from appearing in the buffer list

Trying to figure out how to use netrw (:E) correctly with :Rex and CTRL+O. To reproduce, create 2 files in a /tmp/newdir directory. mkdir /tmp/newdir cd /tmp/newdir echo "blabla 1" > ...
0
votes
0answers
21 views

How to open netrw at each vim session but have the cursor on the code (and not on the tree) when opening

I found the following chunk of command on this blog to have a file browser open by starting vim that I added to my .vimrc. It splits the window into 2 panes: a file browser and the text editor. The ...
0
votes
0answers
12 views

How make NetRW always open the provided dir, even when there is already an upper dir opened?

I created a Drawer command to use NetRW as a file drawer with two main uses. Note: I always use the tree listing mode. Open the working directory Find a file to allow viewing/opening its siblings ...
1
vote
1answer
76 views

How to open directory in toggled netrw window?

I've toggled netrw explorer window by adding the following commands found in an answer posted to this question to the vimrc file. let g:NetrwIsOpen=0 function! ToggleNetrw() if g:NetrwIsOpen ...
2
votes
1answer
62 views

Remapping `v` in netrw/calling NetrwSplit(5) directly

So I've created some helper functions to help work around netrw. They are some keybind simplifications that help with things like window/cursor management when opening files, where to open them, ...
1
vote
1answer
48 views

Netrw discards changes without asking

When I Execute vim A command from shell Edit the file A in some way (now &modified == 1) Execute :Lexplore †1 to enable the side pane of netrw Press Enter on an arbitary file B , the file B is ...
0
votes
0answers
11 views

Multichar commands not working on netrw

I would like to hide files using gh in netrw. However, it seems like none of the g- or m- commands are working for me. All of the other commands seem to be working, however, whenever I enter one of ...
0
votes
1answer
22 views

Keybind for moving a file using netrw from outside of netrw

I wanted to be able to move/rename a currently open file using netrw. The typical concerns are: Closing the old buffer Actually moving to preserve file attributes (so no :saveas) I'm aware of some ...
0
votes
0answers
21 views

Make netrw not close previous buffer but open a new buffer

I have netrw_browse_split set to 4, so typing <Enter> on a file on netrw will open it on the previous window. But if the previous window have a file, it will be closed. How can I make opening ...
3
votes
0answers
43 views

Netrw problem - 'mt' open new tab instead of marking as target folder

I was playing with netrw and was amazed by the possibility. I'd like to mark some files with 'mf' and move it to a folder using 'mt'. However, when I press 't', vim seems to interprets it as "open a ...
1
vote
2answers
125 views

How to close the netrw buffer/window from any other window

I would like to have the behavior where I can run :Vex<CR> when pressing <Tab> in normal mode: nnoremap <Tab> :Vex<CR> ... to open the netrw file tree window and then I would ...
1
vote
0answers
55 views

Change behavior of `gx` key

I used to use chromium before and then, I could press gx on an url and vim would open it in a new tab if a chromium instance was already running, otherwise create a new window. But in firefox, when I ...
2
votes
1answer
120 views

How to delete non-empty directories in netrw (vim 8 or nvim)?

I will try to delete some non-empty folder in netrw by pressing SHIFT + d and, after press y, i got this error: (netrw) unable to delete directory {path} I already put this variable in my .config/...
1
vote
2answers
60 views

explicitly call netrw function in binding

I'm trying to bind the key ^ so that it runs ^ in normal mode by default, but calls the function bound to - in netrw. - is bound to NetrwBrowseUpDir in netrw.vim, definition here . Here's my first ...
1
vote
1answer
63 views

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/...
1
vote
2answers
184 views

How to override netrw-delete behavior

I'm currently using Vim 8.1 on Ubuntu 18.04, and I would like to override the default behavior of deleting local files/directories 'forever' when using netrw. The doc says that this plugin uses a ...
3
votes
1answer
64 views

Where can I see netrw plugin revision history or changelog?

Is there a place where the netrw source code repository is hosted, so I can view its revision history? If not, is there at least a changelog somewhere? If I do git log on netrw.vim in the vim ...
2
votes
1answer
267 views

How to work with multiple project folders in Vim?

I am often working with multiple projects at the same time. For example one main project and 5 related librairies. I have some issue to properly search in one project or multiple. I would like to: Be ...
1
vote
1answer
87 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
27 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
31 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
25 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
1answer
81 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
136 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
50 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
157 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
1answer
31 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
335 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| ...
5
votes
1answer
422 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
2answers
266 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
111 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 ...
2
votes
1answer
688 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
230 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
97 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 ...
1
vote
0answers
212 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
145 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
858 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
94 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//...
5
votes
2answers
1k 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
561 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
168 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
97 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 ...
5
votes
2answers
1k 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
85 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 ...