sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

PinyinSearch : Allow you to search Chinese by the first letter of Chinese pinyin

 script karma  Rating 28/7, Downloaded by 691    Comments, bugs, improvements  Vim wiki

created by
Yuxin Wu
script type
Allow searching of Chinese in VIM by the first letter of Chinese pinyin.

call PinyinSearch() and enter the target chars(first letters of the word),all the matching words will be highlighted, you can use 'n' and 'N' to jump.

During a normal searching (i.e. you are searching for pure english), call PinyinNext() and all the matching Chinese will also be highlighted.





----------START OF EXAMPLE FILE----------------

----------END OF EXAMPLE FILE----------------
In normal mode, enter '/dn' , then "dn" will be highlighted.
Then, call PinyinNext(), then "大能" and "都能" will also be highlighted, and the cursor will jump to "大能".

Or you can just simply call PinyinSearch() and enter 'dn', both English and Chinese will be searched.

The Project is maintained at
install details
1. copy PinyinSearch.vim to your plugin directory

2. specify the location of dict file in your .vimrc, e.g.:

let g:PinyinSearch_Dict = '/home/wyx/.vim/PinyinSearch.dict'

3. (optional)add your custom key map, e.g.:

                nnoremap ? :call PinyinSearch()<CR>
                " I suggest use '?' to search Pinyin (since we have 'N', why using ? to search backward)
                nnoremap <Leader>pn :call PinyinNext()<CR>

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
PinyinSearch.tar.gz 0.8 2013-01-28 7.0 Yuxin Wu change to a new dict; fix highlight problem
PinyinSearch.tar.gz 0.7 2012-11-28 7.0 Yuxin Wu fix bug on nomatch
vim-PinyinSearch.tar.gz 0.6 2012-10-27 7.0 Yuxin Wu easier to use with n/N navigate
PinyinSearch.tar.gz 0.5 2012-09-11 7.0 Yuxin Wu Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo