file:line


Ⅰ. 插件描述

Plugin for vim to enabling opening a file in a given line

Ⅱ. 基本信息

创建日期:  2008-03-07
使用用户:  341
Github星:  244
插件作者:  Victor Bogado da Silva Lins

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# File-line

Plugin for vim to enable opening a file in a given line

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 especified before the colon vim will open this file and take you
to the line you wished in the first place.

This script is licensed with GPLv3 and you can contribute to it on github at
github.com/bogado/file-line.

Install details

If you use Bundle, add this line to your .vimrc:

Bundle 'bogado/file-line'

And launch :BundleInstall in vim.

Or just copy the file into your plugins path ($HOME/.vim/plugin under unixes).

添加新评论