file-line


Ⅰ. 插件描述

Plugin for Vim to enable opening files with the file:line:column syntax

Ⅱ. 基本信息

创建日期:  2008-03-07
使用用户:  11
Github星:  6
插件作者:  Karl Yngve Lervåg

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lervag/file-line-care-of-itself'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lervag/file-line-care-of-itself'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lervag/file-line-care-of-itself'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# File-line

file-line is a plugin for Vim that enables opening a file in a given line.

This is a personal fork of
github.com/bogado/file-line. The fork
was created to address this
issue, but since the code was so short I decided to rather rewrite it and do
some simplifications.

Installation

If you use vim-plug, then add the
following line to your vimrc file:

Plug 'lervag/file-line'

Or use some other plugin manager:

Usage

When you open a file:line, for instance when coping and pasting from an error
from your compiler vim tries to open a file with a colon in its name.

Examples:

vim index.html:20
vim app/models/user.rb:1337

With this little script in your plugins folder if the stuff after the colon is
a number and a file exists with the name specified before the colon vim will
open this file and take you to the line you wished in the first place.

License

This script is licensed with GPLv3.

添加新评论