Questions tagged [netrw]

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

123 questions
0
votes
1 answer

File path does not change while using netrw in vim

While editing a file in vim and opening another file in a second split with netrw, the current working directory does not change and the path is same as the first file opened. Is there any way to fix this? The following mapping in the .vimrc does…
sushi
  • 65
  • 6
0
votes
2 answers

How can I use netrw in SpaceVim?

I tried nvim ftp://[address]//path/to/code.txt but that not work for SpaceVim, it opened an empty file while it was not empty on my remote machine.
0
votes
1 answer

Modular highlighting-by-filetype causes major slowdown. Please advise

I would appreciate some help and/or tips adjusting some modular vim filetype-specific code in my vimrc. Thank you in advance. My vim --version is 8.1. I have extracted a minimal sample of the modular code below. Here is what I had in mind when I…
wip
  • 17
  • 5
0
votes
1 answer

Change Netrw's browsing directory to Vim's current directory?

While browsing in Netrw, how do I change Netrw's browsing directory to Vim's current directory? Typing cd changes Vim's current directory to Netrw's browsing directory, but I want the opposite.
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
0
votes
1 answer

Vim: browse a file hierarchy defined in a file?

Is there a way to have vim (or a plugin) read a json file and use that to define a browsing structure? In my case, the json file defines a novel, which is a collection of chapters. A chapter is a set of scene files. The reason to do this is to…
dhr
  • 1
  • 1
0
votes
0 answers

Move forward with netrw in .vimrc

I try to make Vim with NerdTree and Terminal. For the terminal I use set splitbelow and then :term ++rows=8. The problem is in .vimrc file. There I have let g:netrw_browse_split=4, which will open the file in the last tab I was aka the Linux…
0
votes
1 answer

Modify file sort by name in vim netrw plugin (old version) in Cygwin?

Due to security, tight control of user rights, and understaffed IT, I have very limited opportunities to upgrade my Cygwin installation. I am using netrw version v149 plugin for vim, which sorts files like…
user36800
  • 2,019
  • 2
  • 19
  • 34
0
votes
4 answers

How to open 4 netrw file explors simultaneously in format [:][:] (each dot being a netrw file explorer pane)

In vim or neovim I can do the following :e.|vs.|vs.|sp. To open various netrw file explorers simultaneously. The command above results in the following layout: |netrw0|netrw1|netrw2| | | |netrw3| Now what I want to accomplish is a…
Gio
  • 3,242
  • 1
  • 25
  • 53
0
votes
1 answer

Vim: running `:Explore` (netrw) results in "E492: Not an editor command: Explore"

I can't use :Explore, :Sexplore, et al in both vim or neovim. When I try, I get E492: Not an editor command: Explore. I know it's a problem with my vimrc, because :Explore works when I run vim -u empty_file. So, which configuration/plugin is…
shender
  • 1,243
  • 13
  • 17
0
votes
0 answers

Open netrw from the command line with a filtered list of files

vim . lists the files in the current directory. C:\temp> vim . That results in this listing: " ============================================================================ " Netrw Directory Listing (netrw…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
0
votes
1 answer

vim netrw-qb conflicts with q recording

Under netrw, pressing qb(query bookmark) will list bookmarks etc. But this key is preempted by q recording. It becomes recording to register b. What's your suggestion to deal with this?
minion
  • 561
  • 4
  • 17
0
votes
1 answer

Vim netrw - differences between Explore commands?

I'm a little confused by the netrw documentation on the Explore command variants. In particular, I don't understand how Sexplore (split & explore) differs from Hexplore / how Sexplore! differs from Vexplore.
Kvass
  • 8,294
  • 12
  • 65
  • 108
0
votes
1 answer

vim netrw ftp bookmarks

I almost always work remotely, so i've been using netrw to work over ftp. I can set bookmarks, query bookmarks and even delete them... but i can't actually go to bookmarks ie. {cnt}gb throws this error: E121: Undefined variable: b:netrw_cur E116:…
0
votes
1 answer

Vim netrw shows dot file/directory even when set to be hidden

So the following is my netrw configuration: let g:netrw_winsize=-35 let g:netrw_localrmdir='rm -r' let g:netrw_fastbrowse=0 let g:netrw_hide=0 let g:netrw_list_hide= '*/\.git,*/\.DS_Store$'let g:netrw_sizestyle="h" let g:netrw_liststyle=3 When…
Integralist
  • 5,899
  • 5
  • 25
  • 42
0
votes
1 answer

Vim netrw source session error?

I set netrw let g:netrw_liststyle = 3 in my .vimrc. Then open vim, run :e /tmp and :mksession!. And I open vim again, run :so Session.vim, can't list right netrw.
Wilon
  • 117
  • 1
  • 6
1 2 3
8 9