vim-subword


Ⅰ. 插件描述

Subword text object for vim.

Ⅱ. 基本信息

创建日期:  2012-08-28
使用用户:  1
Github星:  4
插件作者:  Mike Hordecki

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim_subword

by Mike Hordecki

vim_subword adds a new text object to your vim, namely a subword text object.
A subword is either aPartOfACamelCasedWord, or_a_part_of_an_underscored_word.

The symbol for this text object is - (dash).

Usage

If you don't know what text objects are, type :h text-objects.

This module adds a new text object, -. You can use it with all of the regular
text object commands, so ci-, da-, etc. should all work. There is some
way to go to get 100% parity with builin text objects, though. See TODO
section for details.

Installation

You can copy this package on top of your ~/.vim or use pathogen and drop it
into ~/.vim/bundle.

Hacking

There is a test suite attached to the code. I recommend py.test as a test driver.

License

This plugin is licensed under The MIT License.

TODO

+ Motion actions
+ Other actions, such as v**
+ Support for C-R C-- in command-line mode.
+ Proper undo
+ Support for ALL_CAPS_UNDERSCORES

添加新评论