vim-textobj-surrounding


Ⅰ. 插件描述

A vim text object plugin for all surroundings, like (), {}, [], <>, ' ', " "

Ⅱ. 基本信息

创建日期:  2015-07-15
使用用户:  2
Github星:  0
插件作者:  Shine

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-textobj-surrounding

A vim text object plugin for common surroundings based on vim-textobj-user(https://github.com/kana/vim-textobj-user).

Including (), {}, [], <>, ' ', " ", ` `

Support nesting and multi-lines.

Usage

Select 'all' mapping aj, for the nearest former-surrounding to its matching part, including the surrouding itself.

Select 'in' mapping ij, for the nearest former-surrounding to its matching inside.

Examples

  • vij

    '`hello surrounding`'
    
  • vaj

    "this is `[a bracket]` in quotes"
    
  • vij

    {
    
    `I am a line`
        
    }
    

Installation

I recommend installing it via vundle (https://github.com/gmarik/vundle):

Plugin 'Vesion/vim-textobj-surrounding'

添加新评论