neoranger


Ⅰ. 插件描述

Simple ranger wrapper for neovim.

Ⅱ. 基本信息

创建日期:  2017-11-27
使用用户:  4
Github星:  26
插件作者:  Kim Silkebækken

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Neoranger

Introduction

**Neoranger is a simple ranger wrapper script for neovim. It's inspired by Drew
Neil's [thoughs on project
drawers](http://vimcasts.org/blog/2013/01/oil-and-vinegar-split-windows-and-project-drawer/).
It's like vinegar or
filebeagle, but with ranger
as the interface.**

Neoranger opens a terminal with ranger in the current window. It sets ranger's
viewmode to multipane, making it easy to use in narrow windows. You can
select and open multiple files.

The wrapper script ensures that split windows don't break when the terminal
window is closed, by restoring the previous buffer in the current window.

Note that neoranger replaces netrw.

Usage

Neoranger provides two commands, :Ranger and :RangerCurrentFile.

:Ranger accepts an optional directory and file argument. If no arguments are
provided it opens ranger in the current working directory.

:RangerCurrentFile opens ranger and selects the currently open file.

Mappings

Neoranger doesn't add any mappings by default. The following mappings makes
neoranger behave like vinegar or filebeagle:

" Open ranger at current file with "-"
nnoremap <silent> - :RangerCurrentFile<CR>

" Open ranger in current working directory
nnoremap <silent> <Leader>r :Ranger<CR>

Options

Neoranger has the following options:

" for setting ranger viewmode values
let g:neoranger_viewmode='multipane' " supported values are ['multipane', 'miller']

" for setting any extra option passed to ranger params
let g:neoranger_opts='--cmd="set show_hidden true"' " this line makes ranger show hidden files by default

添加新评论