rangerfilepicker.vim


Ⅰ. 插件描述

Use Ranger as File Picker inside vim.

Ⅱ. 基本信息

创建日期:  2019-06-18
使用用户:  1
Github星:  2
插件作者:  Phil Fernandez

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# rangerFilePicker.vim

This was inspired by the
vim_file_chooser.vim
script that ships in the examples directory of ranger. This plugin adds a few features, like
the ability to open files in split panes and/or tabs, and packages the script into a vim plugin.

Installation

vim-plug:

Plug 'philFernandez/rangerFilePicker.vim'

Or use your preferred method of plugin installation.

Usage

Each of the key mappings below opens ranger inside the working directory. The key mapping that
is used will determine how the files will be opened by ranger inside vim. Multiple files
may be selected by using the space key to make selections inside ranger.

key mappingfunctionality
<leader>franger opens files in new buffer
<leader>xranger opens files in split
<leader>vranger opens files in vertical split
<leader>tranger opens files in new tab

Options

The default key mappings can be changed by setting the following options, and
creating user defined key mappings.

optionremap function
let g:ranger_remap_key = 1nnoremap <new-keymap> :RangerChooser<CR>
let g:ranger_remap_key_split = 1nnoremap <new-keymap> :RangerChooserSplit<CR>
let g:ranger_remap_key_vsplit = 1nnoremap <new-keymap> :RangerChooserVsplit<CR>
let g:ranger_remap_key_tab = 1nnoremap <new-keymap> :RangerChooserTab<CR>

添加新评论