Vinfo


Ⅰ. 插件描述

Vim info documentation reader, allows to read info pages when inside a Vim session or from the shell prompt (instead of Info)

Ⅱ. 基本信息

创建日期:  2015-02-24
使用用户:  10
Github星:  34
插件作者:  Daniel Campoverde

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# 1. Introduction

Vinfo is a Vim plugin that allows you to read
Info documentation files
right inside a Vim session in a Vim-help fashioned way or from a shell just the
way you would normally use Info

Why?

The traditional GNU Info program has a 'vi mode', but lets face it, it's just
not good enough; it's very limited and ugly.

That is where Vinfo comes in, leveraging Vim's help-files format and
navigation (tags jumping).

2. Installation

  • Vinfo is Pathogen/
    Vundle compatible.
  • Or install it manually by copying the files to the corresponding locations.

3. Usage

Vinfo can be used right inside a Vim session or from a shell using an alias.

For extra details about how to use Vinfo please use :h Vinfo

3.1 Use inside Vim

You can use Vinfo inside Vim with:

:Vinfo doc

Where doc is the Info documentation to read.

Example:
Read Glibc Info documentation

:Vinfo libc

3.2 Use outside Vim

When your are not inside a Vim session but in the shell prompt you can invoke
Vinfo as a command by using the following shell script:

    #! /bin/sh
    vim -c "Vinfo $1" -c 'silent only'

Save it in /usr/bin/ as a file named vinfo, give it execution
permission with:

$ chmod +x /usr/bin/vinfo

Then from your shell you can read a DOC with:

$ vinfo doc

4. FAQ

4.1 Why the first time I open an Info doc is too slow

The first time Vinfo will create a repo for that Info doc, convert the text
files to Vim help-file syntax and create the tags.

Don't worry, it's just the very first time. Then it will be ok.

4.2 Why the first time I open an Info doc Vim interface freaks out?

Because of the same reason of 4.1

But again: Don't worry, it's just the very first time. Then it will be ok.

4.3 My Info files have been updated but Vinfo is still using the old ones

In Vim execute:

:VinfoClean

4.4 Does Vinfo works in Mac or Windows?

No. It's just for GNU/Linux systems.
Info is the GNU documentation system

5. MISC

5.1 How it looks

Reading Glibc Info documentation

With traditional Info:

Info

With Vinfo:

Vinfo

添加新评论