Questions tagged [netrw]

netrw is a network file editing plugin for the vim text editor.

123 questions
146
votes
4 answers

what is .netrwhist?

When I edit files in my ~/.vim, the .netrwhist file would mysteriously be changed, too. It's content: let g:netrw_dirhistmax =10 let g:netrw_dirhist_cnt =6 ...and so on... What does this file do? Is it important?
Lai Yu-Hsuan
  • 27,509
  • 28
  • 97
  • 164
47
votes
6 answers

Vim - Quit/Close Netrw without selecting any file

My question is fairly simple, still I can't find the answer anywhere : In Vim, how can I close Netrw explorer without actually selecting a file? What keystroke should I hit to close the explorer and go back to the currently opened file? So far, I…
Alexandre Bourlier
  • 3,972
  • 4
  • 44
  • 76
28
votes
7 answers

Setting netrw like NERDTree

I used nmap :NERDTreeToggle to toggle nerdtree window. How can I do the same with netrw? nerdtree window is not shown in the buffer list(:ls). netrw is listed in the buffer list. How can I make it not listed? :bn command works but…
alice
  • 2,547
  • 4
  • 24
  • 30
24
votes
1 answer

How do I configure .vimrc so that line numbers display in netrw in Vim?

I'm using netrw to read directory listings in Vim, and I would like to display line numbers in my netrw tabs (so I can use :24 to navigate through directory listings faster). I'm using "set number" in my vimrc to enable line numbers when editing…
Travis
  • 4,018
  • 4
  • 37
  • 52
20
votes
1 answer

vimrc setting to ignore file types in netrw

What is the setting used in .vimrc to make the netrw directory listing ignore/hide certain file types? set wildignore=*.obj,*.exe only seems to work for tab completion. Within netrw, you can ctrl-g to edit the hiding list, but that only lasts for…
Hollister
  • 3,758
  • 2
  • 20
  • 22
17
votes
4 answers

Open file in vertical split in Vim / netrw

If I open vim with vim . netrw provides me with a nice list of the files and directories in the current directory. If I open a file using v the file opens in a very narrow split down the left hand side of the screen and the directory listing remains…
jx12345
  • 1,650
  • 2
  • 22
  • 40
15
votes
2 answers

how to make netrw in vim work like solution explorer in visual studio

okay, i will make this more clear here.. say i have the directory listing in a vertical split window, along with the file i'm editing.. i can go from one split to the other using Ctrl+w and open files in the file listing using netrw plugin in four…
syllogismos
  • 600
  • 2
  • 15
  • 39
13
votes
7 answers

How do you change the root of the netrw tree in vim?

The title sums it up, really. I'd like to know how to set the current root of the tree when browsing files using netrw in vim. Any ideas?
jabalsad
  • 2,351
  • 6
  • 23
  • 28
12
votes
2 answers

Copying files with Vim's netrw on Mac OS X is broken

To copy a file in Vim using netrw has the following steps: Select the destination directory (using mt) Select the file to be copied (using mf) Proceed with copying (using mc) The commands to use in netrw are: mt run while cursor is on top of the…
Integralist
  • 5,899
  • 5
  • 25
  • 42
11
votes
3 answers

Opening a file from .netrw in a specified split

This is the same question as on SuperUser, but I feel it has a better chance of being answered here, so ... In Vim, I have four splits - two by two - and in the upper left one netrw is open. Is there a way to open a file from netrw in the lower…
Rook
  • 60,248
  • 49
  • 165
  • 242
10
votes
3 answers

Vim netrw asking to "Press ENTER or type command to continue"

I have noticed that when I start the day and open vim, then use :Exp, I get the "Press ENTER or type command to continue" prompt. Usually this is shown when an external command is executed. I don't remember :Exp doing this in the past(?). Further,…
Edd Barrett
  • 3,425
  • 2
  • 29
  • 48
9
votes
2 answers

How to enable 'gx' in Vim? Mine doesn't work anymore

I have tried wiping my .vimrc, uninstalling all plugins, updating Vim, trying different shells, etc. but I absolutely can't get 'gx' to work over a given URL. I have used it before and it worked fine, it even use to open up my finder directory if I…
tommyc38
  • 703
  • 1
  • 8
  • 21
9
votes
3 answers

How to save in vim a remote file asynchronously?

Edit a remote file with vim scp://remote/file Saving the file with :w blocks the editor till the file changes are saved to the remote. I was trying to use :Dispatch :write to avoid being blocked but that does not work (using tmux or iterm…
Hotschke
  • 9,402
  • 6
  • 46
  • 53
8
votes
1 answer

Create a new file but not open a buffer in Vim netrw

I have VIM netrw split setting to open any file in a right-side Preview Buffer, and it works fine. My problem is that a new file is automatically open in netrw buffer, when I create the new file by % command. I want to open the new created file in…
Joe Cho
  • 149
  • 1
  • 7
8
votes
3 answers

Netrw open files into tabs in opposite vertical window

Imagine I have :Vex after starting vim. I want to be able to press t and have the tabs appended to the opposite window rather than the Netrw window. Is this possible? If I press P I can open the file into the split window but I would like to be able…
HankHendrix
  • 295
  • 2
  • 9
1
2 3
8 9