vim-textobj-ipmac


Ⅰ. 插件描述

Text objects for IP address or MAC address

Ⅱ. 基本信息

创建日期:  2014-01-30
使用用户:  3
Github星:  2
插件作者:  deris

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'deris/vim-textobj-ipmac'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'deris/vim-textobj-ipmac'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'deris/vim-textobj-ipmac'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

textobj-ipmac

This is Vim plugin to provide text objects to select IP address or MAC address.

Support following.

  • IPv4 address
  • IPv6 address
  • IPv4-mapped IPv6 address
  • MAC address

Screenshot

screenshot

Install

This plugin depends on vim-textobj-user.

So you need to install vim-textobj-user together.

Usage

Default key mappings is iA and aA (operator mode).

iA can use inner IP address or MAC address as text object.

aA equals to iA.

For example diA to use delete inner IP address or MAC address.

License

MIT License

添加新评论