vim-nerdtree_plugin_open


Ⅰ. 插件描述

Open non text files from nerdtree with an appropriate application.

Ⅱ. 基本信息

创建日期:  2014-05-02
使用用户:  9
Github星:  7
插件作者:  Sebastian Woelke

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This Repro was originally a fork from vim-nerdtree_plugin_collections.

NerdtreePluginOpen

NerdtreePluginOpen extends Nerdtree with the ability to open non text files with an appropriate application independent from vim.

Install

Install this plugin with your favorite plugin-manager or manual with the following command:


git clone https://github.com/aufgang001/vim-nerdtree_plugin_open.git  ~/.vim/vim-nerdtree_plugin_open.git

Extend your .vimrc file with the following command:

let g:nerdtree_plugin_open_cmd = '<your command>'

"Your command" depends on the operating system and desktop environment, just check if one of those are available:

  • xdg-open (desktop-independent tool)
  • gnome-open (gnome)
  • exo-open (xfce)
  • gvfs-open (whatever, I have no idea)
  • kde-open (kde)
  • open (MacOS)
  • use your own command, if you think that stuff is to creepy

Usage

Select an arbitrary file or directory and press the button <E> to open the file with the default program choosen by the operating system or the directory with the default file manager.

添加新评论