kien/ctrlp.vim — pull request #41 by mattn (2011-11-30 02:04:38+00:00)
Title: Migemo Search

Hi.
Thanks for your awsome plugin.

For japanese, we have a lot of files that named in japanese. So we can't use ctrlp.vim to search the files.
For example, we can write `aiueo` in few expression like below.

* `aiueo` in roman
* `あいうえお` in japanese hiragana
* `アイウエオ` in japanese katakana

And we also use KANJI. KANJI is composed by few symbols.

Then, I think that `migemo` is good to solve the problem. `migemo` can convert string to possible regular expression.
For example, `migemo` can convert `aiueo` to following.

```
\%(ｱ\_s*ｲ\_s*ｳ\_s*ｴ\_s*ｵ\|ア\_s*イ\_s*ウ\_s*エ\_s*オ\|あ\_s*い\_s*う\_s*え\_s*お\|ａ\_s*ｉ\_s*ｕ\_s*ｅ\_s*ｏ\|a\_s*i\_s*u\_s*e\_s*o\)
```

For about KANJI, `nihon` (is meaning `japan` in japanese) is:

```
\%(∥\|二\_s*本\|ﾆ\_s*ﾎ\_s*[ﾝﾉﾈﾇﾆﾅ]\|に\_s*ほ\_s*[んのねぬにな]\|ｎ\_s*ｉ\_s*ｈ\_s*ｏ\_s*ｎ\|日\_s*本\|ニ\_s*ホ\_s*[ノネヌニナン]\|n\_s*i\_s*h\_s*o\_s*n\)
```

I added bits change to use `migemo`. And ctrlp.vim become VERY useful for me.
If you arrow this change, please include this.

If you can't show japanese above, please see the image.

http://go-gyazo.appspot.com/9921943e31b728ed.png

Thanks.