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
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
805 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
324 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
958 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
286 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
652 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
133 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
1k 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
13k 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
610 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?
12
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
195 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
220 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
480 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
9k 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
11k 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
540 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
107 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
858 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
779 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
2answers
902 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
159 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
245 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
643 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 ...
8
votes
3answers
3k 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
74 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
163 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
1k 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
128 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>...
3
votes
2answers
902 views

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

netrw: have the cursor placed on previous cwd name when going up dir

In a netrw listing, when I press - key to go up a directory, I would like the cursor placed on the line corresponding to the dir I have just left (exactly how happens on some file managers, e.g. Nemo)....
4
votes
2answers
954 views

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 ...
22
votes
2answers
3k views

How can I make gx recognise full URLs in vim?

By default, if a buffer in vim contains a URL such as http://www.google.com, gx in normal mode will open a browser with that URL. That's very handy. However, if the URL has URL parameters (e.g. http://...
5
votes
1answer
262 views

Disable vim-surround in a netrw buffer

Is there a way to disable a plugin (or a set of keymaps) on a specific filetype? vim-surround causes a delay in netrw when pressing d to create a new directory. I'm thinking that this might be ...
2
votes
1answer
577 views

Prevent cursor movement when clicking “../” in netrw

When using netrw or the native vim file explorer, every time I click on ../, the cursor moves to the top of the page. This is very irritating when I'm trying to go up multiple directories - I have to ...
4
votes
1answer
73 views

What does number+enter do in Explore?

as we know that we can use Vim to browse a directory. My question is what does number + Enter do on a file list? I thought it equivalent to number + j + Enter, however, after I enter into a file, ...
8
votes
4answers
803 views

Can :Explore be started from the terminal?

When using Vim you can use :Explore to browser through files and folders. Is there a simple way to start Vim in "Explore mode" from the terminal? Can I do this by just giving Vim some argument?
7
votes
1answer
603 views

Can I pass a custom string to the 'gx' command?

I have a file like this: vi.stackexchange.com example.com duckduckgo.com I want to be able to open these sites with gx; this doesn't work because there's no protocol (http://) in front of these ...
8
votes
3answers
2k views

Make :edit {file} use current directory during :Explore

I often use :Ex or :Sex to explore the filesystem from an opened file directory, or just invoke vim passing a directory to start exploring the filesystem and then opening a file. In any case, while ...

1 2
3