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
4
votes
2answers
1k 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
282 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
610 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
74 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
929 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
642 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
4