netrw is a network file editing plugin for the vim text editor.
Questions tagged [netrw]
123 questions
2
votes
4 answers
Vim netrw - Explore when modified without split
I've opened a file and modified it - now I want to do :Explore without splitting.
It splits - because I have an unsaved buffer. By default this is nice, becasuse Vim generally doesn't allow to switch files, until you do something with the modified…

Luigi
- 866
- 13
- 34
2
votes
2 answers
Vim ignores window splitting settings in netrw
I would prefer if vim opens new windows on the right old window (when using vsplit) and under old window (when using split).
I read that I should set splitright and set splitbelow to my .vimrc. I added also g:netrw_altv=1 and g:netrw_alto=1. This…

winnfield
- 273
- 4
- 19
2
votes
1 answer
Netrw and other windows opened at the same time: no window toggling
When I open a netrw window and any other window (:new or help window, for example) at the same time, I can't toggle between those two windows using or any other keys. I can even open a new window with :new, and still only be able to…

gvlasov
- 18,638
- 21
- 74
- 110
2
votes
1 answer
Why doesn't (Vim plugin) NetRW browse function open directories and files?
I'm using MacVim 7.3 snapshot 66 (latest as of Dec 2012) with NetRW v147b. When I run mvim . from the command line, it runs NetRW, but the browse behavior is very strange.
My NetRW window looks like this (notice the weird full paths, instead of…

Doug
- 3,119
- 3
- 27
- 30
1
vote
2 answers
How do I get netrw (in Vim) to use the absolute path?
I've got Vim73 on Windows, and I'm trying to move files through the file browser.
It had been giving me an error about "move" not being executable (see this post). After some debugging I discovered the issue was in my vim73\autoload\netrw.vim file.…

Wayne Werner
- 49,299
- 29
- 200
- 290
1
vote
1 answer
unset target directory after copying a file in vim netrw
It is well known that vim's netrw extension allows one to manage files directly inside vim. For example to copy a file using the following key strokes in vim:
mf (to mark each file)
mt (to set the current directory as the target)
mc (to copy the…

user1742189
- 68
- 6
1
vote
1 answer
vim netrw opens long file names incorrectly with timestamp
When I try and open a file with a long name in netrw in a directory listing with file date showing it will open the file as testfile999 Sun 20 Feb..... including the date hence resulting in a new file buffer not the file.
To reproduce:
open…

Stephen
- 23
- 3
1
vote
1 answer
Write this in VimScript : "If Lexplore opened a file(anyfile) then close Lexplore"
I want to:
Automaticaly close Lexpore after opening a file for better experience but I don't know vim script.
It shouldn't be hard, I suppose.
I will appreciate any comment!
I'm now learning vim script and trying to do it.
here is where I've got by…

ju pasknow
- 13
- 4
1
vote
1 answer
How to get a file path or a file name in netrw of Vim
I would like to get a file path or a file name in netrw easily.
Is there any way to get a file path or a file name in netrw of Vim?

Atsushi Sakai
- 938
- 10
- 22
1
vote
0 answers
Trying to open a file in netrw sometimes opens the wrong file
I'm using netrw in my NeoVim setup to navigate files. I typically open netrw with :Explore which I've mapped to and open files / expand directories by pressing enter with my cursor on the target. About 50% of the time however, pressing enter…

dbatten
- 437
- 5
- 18
1
vote
3 answers
Autoload netrw when starting vim
I want netrw to autoload when I launch vim using the terminal. Completely new to linux/ubuntu. Is there any way of doing that?

SwayamShree
- 25
- 6
1
vote
2 answers
Vim, how to make Netrw to replace current open file instead of split opening new window, when you press preview or create new file commands?
Recently I've been using netrw. I've put these four lines on my .vimrc:
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_winsize = 25
map :Lexplore
And I can easily toggle Lexplore and browse through the files to edit…

Libertarian
- 11
- 1
1
vote
1 answer
Vim: Edit files on FTP server over Passive (PASV) mode
I need to access a server using an FTP client in passive mode, but how do I do this for Vim FTP
connections?
Running ftp -p 12.34.56.67 works fine, but how do I do this when starting vim (for ex. vim ftp://12.34.56.78/)?

Ben
- 759
- 1
- 6
- 19
1
vote
0 answers
How to split Vim windows when using NERDTree?
I'm a recent convert to NERDTree having used NETRW for many years. I'm struggling to know how to specify where the buffer will be placed in a split.
Sometimes I want to open the split vertically:
New buffer on the right (:Vex! with NETRW).
New…

jlconlin
- 14,206
- 22
- 72
- 105
1
vote
1 answer
vim netrw close netrw buffer on file open
When I open netrw and choose a file, it opens in a new buffer. This means that if I do b% to go to previously opened buffer I will go back to netrw, rather then the file I was editing before.
How can I change this behaviour so I can either open new…

Adam
- 3,415
- 4
- 30
- 49