Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhysd/migemo-search.vim
Integrate migemo into search in Vim.
https://github.com/rhysd/migemo-search.vim
Last synced: 18 days ago
JSON representation
Integrate migemo into search in Vim.
- Host: GitHub
- URL: https://github.com/rhysd/migemo-search.vim
- Owner: rhysd
- Created: 2013-09-03T04:25:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T09:44:47.000Z (about 2 years ago)
- Last Synced: 2024-10-05T12:32:52.389Z (29 days ago)
- Language: Vim Script
- Homepage:
- Size: 8.79 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## migemo-search.vim
migemo-search.vim は Vim の `/` や `?` での検索を損なうことなく migemo を組み込むことを目的としています.
migemo とは,ローマ字を入力として,そのローマ字を含む日本語にマッチする正規表現を生成するツールです.
`/` や `?` で検索する際にローマ字を入力すると自動的に検索ワードが migemo によって生成された正規表現に置き換えられ,ローマ字で日本語を検索することができるようになります.### Requirements
[cmigemo](http://www.kaoriya.net/software/cmigemo/) が必要です. Debian 系の OS では `apt-get install cmigemo`,Mac では `brew install cmigemo` でインストール可能です.
また,オプショナルですが,[vimproc.vim](https://github.com/Shougo/vimproc.vim) がインストールされていると `system()` の代わりに `vimproc#system()` を使います.### Usage
自分で `` にマッピングする必要があります.
`cmigemo` が無い環境では最初にプラグインを実行する際にエラーを吐くので,次のようにすることをおすすめします.```vim
if executable('cmigemo')
cnoremap migemosearch#replace_search_word()."\"
endif
```### License
MIT ライセンスです.
Copyright (c) 2013 rhysd
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.