netrw


Ⅰ. 插件描述

Mirror of Dr. Chip's netrw vim plugin for vundle

Ⅱ. 基本信息

创建日期:  2012-09-25
使用用户:  54
Github星:  44
插件作者:  Ryan Carter

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'eiginn/netrw'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'eiginn/netrw'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'eiginn/netrw'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/eiginn/netrw

Ⅳ. 文档说明

## netrw (Network Oriented Reading, Writing, and Browsing) ##
Mirror of Dr. Chip's netrw vim plugin for vundle
http://www.drchip.org/astronaut/vim/index.html#NETRW

Updated Nov 06, 2019 (v166)

From the site:

Supports network-oriented editing with urls. One may read and write files using one of several supported protocols
(ex: ftp, scp) and browse directories, both remotely and locally. This version requires vim 7.0.
Be sure to remove any older versions of netrw before attempting to install this version. In version v142b of netrw,
g:netrw_winsize's meaning has been changed. Previously, it was the number of rows or lines to be used for new windows
spawned off of netrw (ex. when using v or o). The new method uses g:netrw_winsize as a percentage of the netrw's
window size in the appropriate direction (ie. winheight or winwidth). The percentage is an integer (by default, it is 50).
Unfortunately, there was a bug that makes the netrw version that was distributed with vim v7.0 cause difficulties with a
vimball-installation of a new netrw. So, for vim v7.0, you'll need to remove the older version of netrw:

Change directory to the directory holding the vim 7.0 distribution's plugin/ and autoload/ directories.

/bin/rm plugin/netrw.vim autoload/netrw.vim doc/pi_netrw.txt

Beginning with v108b of netrw: sourcing remote files is supported.

Here's a list of some netrw options that I myself use:

let g:netrw_altv          = 1
let g:netrw_fastbrowse    = 2
let g:netrw_keepdir       = 0
let g:netrw_liststyle     = 2
let g:netrw_retmap        = 1
let g:netrw_silent        = 1
let g:netrw_special_syntax= 1

添加新评论