项目作者: bootleq

项目描述 :
Put space on word boundary
高级语言: Vim script
项目地址: git://github.com/bootleq/vim-wordword.git
创建时间: 2015-07-11T04:54:42Z
项目社区:https://github.com/bootleq/vim-wordword

开源协议:The Unlicense

下载


Word Word

Build Status

Reading words without dividing is uncomfortable.

  1. word文字word

Add word-boundary spaces to rescue.

  1. word 文字 word

Background

Space is widely used as a word divider,
while in Chinese/Japanese writing, there are no separation inter words.

When mixing two systems, for example word文字word, many people believe some
spacing should appear between word and 文字 for readability, lead it seems
like word 文字 word.

We haven’t developed a good solution to add space yet, but have to add
whitespace by hand. This plugin just comes to make it easier.

Features

  • A wordword#break() function to convert string with spaces added.
  • User operator (require vim-operator-user plugin by @kana).
  • Add spaces between words and punctuations,
    e.g.: foo,bar to foo, bar.
  • Automatically add spaces when typing.

Most features were disabled by default, please read doc to configure yourself.

License

Release to public domain.