Giter Club home page Giter Club logo

textobj-mbboundary.vim's Introduction

mbboundary.vim - ASCII文字とマルチバイト文字の境界を区切りとするtext-object

mbboundary.vimは、 ASCII文字とマルチバイト文字の境界を区切りとするtext-objectを 扱えるようにするVimプラグインです。

日本語文章中の英語のフレーズを扱いやすくする目的で作成しました。

例えば、「VIM は Vi IMproved の略です。」のpにカーソルがある際に、 "Vi IMproved"をtext-objectとして扱えるようになります。

また、ASCII文字とマルチバイト文字の境界まで移動するキーもmapします。

デフォルトのマッピング

  • am a text-object. カーソル位置の文字の境界までを選択
  • im inner text-object. カーソル位置の文字の境界までを選択 (ASCII文字の場合はスペースは除く)
  • gn 次のASCII文字とマルチバイト文字の境界まで移動
  • gN 前のASCII文字とマルチバイト文字の境界まで移動

let g:mbboundary_no_default_key_mappings=1 と設定すると上記マッピングは行わず、 <Plug>MBBoundaryTextObjA等の<Plug>のみ登録します。

SEE ALSO

その他の、日本語編集関係のtext-objectプラグイン等。

Vimでは、どのtext-objectを使うかをユーザが簡単に選べるので、 様々なtext-objectを用意して選択肢を増やしておくと利便性が高まると思います。

  • Vim組み込みの、i", i), it

    ""や()や<tag></tag>にはさまれた文字列を対象とするtext object。

  • textobj-jabraces

    日本語のかっこ「」【】等の中の文字列を対象とするtext object。

  • textobj-between (記事)

    指定した文字ではさまれた文字列を対象とするtext object。

  • jasegment.vim

    日本語文字上でのWORDを文節単位にして、iWを日本語向けにするプラグイン。

    日本語文字上でも、英文のWORDと同様に、 空白文字で区切られた文字列を選択するtext objectを定義 して、iE等に登録可能。

  • jasentence.vim

    日本語句読点"、。"をsentenceの終わりとみなして、 isを日本語向けにするプラグイン。

textobj-mbboundary.vim's People

Contributors

deton avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.