Questions tagged [netrw]

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

Filter by
Sorted by
Tagged with
7
votes
1answer
859 views

vim 8.0 file explorer only allows specific locations

I'm running Vim 8.0 on a Windows 7 system and I'm having this issue whenever I open gvim (the one that runs in a window as opposed to running in cmd) the default path in :pwd is c:\users\"user". If I ...
1
vote
1answer
870 views

How to display netrw's current path? The default banner is to stuffed

I use the following settings to hide the netrw banner: let g:netrw_banner=0 I know that this also displays the current directory, but it also displays a bunch of other things I'm not interested in. ...
3
votes
4answers
2k views

Autocmd on directory to replace netrw

I use the ranger plugin wich I can trigger with a shortcut. But when I open a directory I would like to use the plugin instead of netrw. So I have found that the filetype of directories is netrw, ...
4
votes
1answer
821 views

Strange behavior between autochdir and netrw

This has been plaguing me for a while now, but I've only just recently been able to come up with an MCVE. The problem is that when autochdir is on and I use :Explore to open netrw sometimes it will ...
1
vote
2answers
316 views

.swp swap files for directories while browsing with netrw

Sometimes I browse around the directory of the current buffer by using :Ex. On one of my development machines, this results in a .swp file being created in every directory I visit. I've checked the ...
0
votes
1answer
807 views

How do I script Vim to download a thesaurus file and save it?

I want to create a command that will download a large file and save it to my local system. I am not interested in editing this file. I also would like to avoid a huge if block to see what downloaders ...
0
votes
2answers
260 views

Gvim: gx to {the same, a new, a vertical-split} window

Say in Gvim I have a line in the current buffer: ~/.bashrc How can I access this file (~/.bashrc) in the same, or a new, or a vertical-split window? I tried gx, which opens the file with xdg-open. ...
5
votes
1answer
189 views

open salt://whatever as somedir/whatever [closed]

I like having netrw loaded for browsing directory contents when I open '.' and for downloading webpages when I split http://host/path, but it's really getting in the way of opening files with gF or ^...
7
votes
3answers
10k views

how to use Netrw Directory Listing in VIM split window without exiting it when a file has been read

When using VIM, it is possible to get a file listing in one split window by doing this: :vsp :e. Then you have something that looks like this: However if you open a file then how can you get back ...
0
votes
1answer
467 views

Unmap netrw-c in vinegar.vim

I am using following vim plugins vinegar and unimpaired. When I enter a netrw directory listing with -, the mappings of unimpaired starting with c (e.g. toggle line numbers with con) do not work ...
4
votes
2answers
2k views

How do I make netrw behave with respects to cycling through buffers with :bprevious/:bnext

I have my vim setup according to "Solution #1: Replicating Tabs with Buffers" on this site buffers-vs-tabs with the vim-airline plugin. If I open numerous files in buffer 'tabs' :bprevious/:bnext ...
1
vote
1answer
812 views

What does "toggle" mean in the context of Lexplore?

The description of Lexplore says that it "toggles" a directory window on the left side, but I don't see the difference between that and Vexplore, which seems to do exactly the same thing. If I do :Lex ...
1
vote
1answer
159 views

How to navigate when using netrw-R (rename)

Often I rename files using netrw-R. It opens a rename confirmation on the commandline(?). E.g. Moving /home/ber/Documenten/xxx/xxx/test/services/member_balance_calculator_test.rb to : /home/ber/...
3
votes
2answers
752 views

How do I properly manage a directory listing within a buffer?

I use a mix of buffers and split panes to manage my workflow. Sometimes, I (perhaps accidentally) open a directory listing instead of a file. My buffers may look like this then: At this point, I can :...
1
vote
0answers
94 views

Is there any documentation available on the internals of netrw?

I have found fairly clear documentation on the usage and customization of netrw, but a perusal of the plugin source code shows only method-level comments, and does not give a good indication of the ...
0
votes
0answers
2k views

How I configure Vim for use with netrw?

I recently started to use netrw as a file manager next to my editing session. But I had a coupe of issues with it. First of all netrw reads unhidden buffers from the disk every time. Which made me ...
1
vote
2answers
860 views

Customize syntax highlighting in netrw

Right now I am working on a latex project. When I open a netrw/vinegar window, I get following coloring: Apparently, certain filetypes are grayed out and other are not. I like the idea to emphasize ...
7
votes
2answers
339 views

au FileType netrw echom "ft is now netrw" does not show up in :messages

Entering in vim :au FileType netrw echom "ft is now netrw" Afterwards, I open a netrw window with :E . Now, I expect to have a message entry in :messages. However, no message is there. Why is there ...
1
vote
1answer
1k views

Changing of disk partition with netrw on Windows

I guess this is not a problem for Linux users, but in Windows disks have drive letters. How can I switch drive letters in netrw on Window?
1
vote
1answer
298 views

explore, netrw: How to navigate to a file / folder starting with "abc"

Is there any way to jump to a file / folder starting with a given set of characters?
2
votes
3answers
754 views

Copying absolute filepath of selected file in Netrw

Is it possible to copy the absolute filepath of the file under the cursor in Netrw?
1
vote
1answer
143 views

autocmd mark statements causing problems with nerd tree and netrw?

In order to automatically trigger a mark holding the last cursor position when I left a buffer or window, I added these statements to my ~/.vimrc: for more background on why I wanted to add these ...
2
votes
1answer
2k views

Open files with "whitespace names" from within Vim with gx

I have a file, e.g. ~/abc def.mp3 that I want to open from within a Vim buffer that already contains these lines. If there were no whitespaces in the filename, I could simply open the file with the ...
2
votes
1answer
2k views

How to display line numbers in netrw v125 (vim7.0)?

I added let g:netrw_bufsettings = 'noma nomod nu nobl nowrap ro' and set nu to my vimrc on my Ubuntu machine. It can display line numbers in netrw (V149). When I use the same vimrc on a remote server ...
19
votes
3answers
14k views

Cannot exit Vim even using q!

I cannot exit vim even when I type :q!. I get the error E37: No write since last change (add ! to override) E162: No write since last change for buffer... I think the buffer is a NetrwTreeListing ...
6
votes
1answer
637 views

Lots of Explore issues [closed]

I've been using [Neo]vim for a few months now with a number of plugins. One I decided to use was the built in :Explore for my file-browsing needs. I am having some serious issues with Explore and ...
6
votes
2answers
2k views

If I split the screen and open a Netrw dir listing in one window, Vim won't let me focus that window

I'm using Vim 7.4. I have a buffer open and I type :vsplit. Vim splits the screen and I see my buffer in both windows. That's great. Just what I want. And at this point ctrl+W W switches the focus ...
2
votes
1answer
2k views

:Explore shows the "." directory

Why does the :Explore command shows the . directory? This seems to be unnecessary as it's just one more line that I have to j. Is there some way I can disable this?
14
votes
3answers
4k views

Navigating using SSH

I know one can use vim scp://host/path/to/file to edit locally remote files then update the remote machine when saving (:w). However I would like to know if it's possible to navigate through ...
3
votes
0answers
210 views

Directory symlink browsing moves me to new location when autochdir is set

I have a symlinked directory as such: ~/nested Which points to this directory: ~/whatever/yetanother/andanother/nested When I launch gvim or command line vim (7.4, with the standard, built-in ...
2
votes
1answer
227 views

BufWritePost not working after navigating using netrw

I'm trying to deploy some static content upon writeing a buffer with an autocmd: augroup dep autocmd! autocmd BufWritePost myProject/frontEnd/** :call s:deploy() augroup END The s:deploy ...
1
vote
1answer
519 views

Does MobaXTerm's vim support netrw?

I'm trying to use my MobaXTerm vim to access a remote file using netrw as follows: vim scp://my_username@my_server//path/file.txt I have password-less login set up (through .ssh / rsa_id, etc.). ...
15
votes
6answers
10k views

Using :Explore without closing current buffer

If I open the file explorer with :Explore and choose a file, it replaces the buffer I had open before and I have to open it again. How do I avoid this?
18
votes
3answers
12k views

How do I copy a file in netrw?

The current working directory is ./A/B/. An empty document is opened when I type vim, and the netrw is opened with command :e. The window is split by vs., and I can navigate to the upper level ...
5
votes
4answers
1k views

Use netrw to change my bash working directory?

Could this be done? For example, I'm imagining that I would type vim . then navigate to a different directory within netrw, exit netrw, and find that bash has done a cd to that same directory.
5
votes
2answers
614 views

Why does gx call curl when the cursor is on a URL with trailing slash?

When my cursor is on a URL that ends with a trailing slash, for example : http://www.google.com/ ... if I type gx to open the link in my browser, curl is also called to download the webpage and the ...
3
votes
2answers
117 views

Is it possible to add a file to the argument list with in netrw?

I am a heavy user of the argument list and I always have the files which are important for my current task in it. Now I started to use netrw more often to search through the files system. But I can't ...
1
vote
0answers
902 views

Remap netrw keys [closed]

I have a problem since the last Vim update that is driving me crazy. I don't know if it's actually related to the update, but since I didn't change anything in my config that's my best guess. I've ...
4
votes
2answers
865 views

How can I stop 'Obtaining <filename>'?

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

Vim slowdown when browsing with netrw [duplicate]

Sometimes there are several second long slowdowns when browsing Clojure source code in a Git repo via Vim's netrw. My Vim version is 7.4.865. I do have a couple of plugins that must have caused this. ...
4
votes
2answers
3k views

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?
5
votes
3answers
1k views

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 <CR> to do what : normally does (start command-line mode). Vim's built-in netrw plugin also remaps <CR> to open the ...
0
votes
1answer
174 views

NetRW bug? : vim scp://host1/filepath scp://host2/otherfilepath only opens first file

There is some strange behavior to observe in the current version of NetRW shipped with Debian Jessie (current as of Mid-2015) on my installation. Searching online doesn't immediately reveal other ...
2
votes
1answer
257 views

What does it mean to buflist netrw buffer?

I find there is one line let g:netrw_bufsettings = 'noma nomod nu nobl nowrap ro' in my _vimrc file. Google says it could make netrw buffers buflisted What does it mean to make "netrw buffers ...
6
votes
2answers
658 views

No Vim, I don't want to save changes to a directory

I frequently use :e. to navigate folders and open files in gVim. But later, when I try to close the session with a :qall, I am asked by vim whether or not I want to save changes to the folder(s) I ...
10
votes
3answers
4k views

How to return to netrw from a file

Suppose that I'm editing a file, then I press :w to store it. And then I use :e. to navigate its containing folder in the netrw. Suppose its containing folder is ./A/B/. In netrw, I open a file with ...
3
votes
0answers
76 views

Filetype changes when using :split and :Explore

Why does using :split and :Explore cause the filetype to change? For example, edit a file named text.man, and the filetype is set to man. Change the filetype to txt, then :split and :Explore in the ...
5
votes
1answer
175 views

Cannot open an url (empty buffer)

I have some strange troubles with opening an url in vim. Judging from this answer, this should be pretty easy, but when I'm doing this: $ vim http://www.ietf.org/rfc/rfc7386.txt I getting a message ...
4
votes
1answer
2k views

Buftype=nofile when switching buffers with :Vexplore

When I open up :Vexplore in a split and open a file in it, the file in the other split ends up with buftype=nofile set so I can't write in that file or anything. But the new buffer that was opened ...
2
votes
0answers
131 views

Explore command causing errors

I open vim and then use the command :Explore. Then I got these errors: Error detected while processing function netrw#Explore..netrw#LocalBrowseCheck..<SNR>16_NetrwBrowse..<SNR>...