perl-nextmethod


Ⅰ. 插件描述

Vim plugin which offers [m, [M, ]m and ]M mappings for perl

Ⅱ. 基本信息

创建日期:  2013-03-04
使用用户:  1
Github星:  7
插件作者:  Catalin Ciurea

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# perl-nextmethod


This is a Vim plugin which offers mappins for [m, [M, ]m and ]M normal mode motions in perl files.

  • ]m jumps to the next perl subroutine start
  • ]M jumps to the next perl subroutine end
  • [m jumps to the previous perl subroutine start
  • [M jumps to the previous perl subroutine end

Details

According to Vim documentation these motion commands work only for 'Java and similar structured languages'

This plugin implements these motions in Perl scripts

NOTES:

  • There is a small issue with the standard c, d and y operators.
  • Visual Selection operator v is not supported with these motions currently
  • The jumplist and the ` mark(last position) are not preserved.

Catalin Ciurea

添加新评论