├── plugin └── sdcv.vim └── README.md /plugin/sdcv.vim: -------------------------------------------------------------------------------- 1 | " Searching word with sdcv at Vim. 2 | 3 | function! SearchWord() 4 | let expl=system('sdcv --utf8-output -n ' . 5 | \ expand("")) 6 | windo if 7 | \ expand("%")=="diCt-tmp" | 8 | \ q!|endif 9 | 25vsp diCt-tmp 10 | setlocal buftype=nofile bufhidden=hide noswapfile 11 | 1s/^/\=expl/ 12 | 1 13 | endfunction 14 | 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vim-sdcv 2 | 3 | The plugin is fork from [Yunt](http://my.opera.com/yunt/blog/show.dml/304842), and it can search word in Vim, but it`s need sdcv and dictionaries. [(more)](http://note.drx.tw/2013/10/working-on-gnu-linux-16-vim-sdcv.html) 4 | 5 | ![sdcv at Vim](https://lh5.googleusercontent.com/-k6eRB1pQTd0/UkyAE9o5hVI/AAAAAAAAV1o/4R8nOtWba1k/s640/2013-10-03-sdcv-vim.png) 6 | 7 | ▲ use sdcv in Vim. 8 | 9 | ## Installation 10 | 11 | This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers: 12 | 13 | * [Pathogen][2] 14 | * `git clone https://github.com/chusiang/vim-sdcv ~/.vim/bundle/vim-sdcv` 15 | * [NeoBundle][3] 16 | * `NeoBundle 'chusiang/vim-sdcv'` 17 | * [Vundle][4] 18 | * `Bundle 'chusiang/vim-sdcv'` 19 | * manual 20 | * copy all of the files into your `~/.vim` directory 21 | 22 | ## Configuration 23 | 24 | Mapping for quick search word. 25 | 26 | nmap w :call SearchWord() 27 | 28 | ## File Structure 29 | 30 | ├── plugin 31 | │   └── sdcv.vim 32 | └── README.md 33 | 34 | [2]: https://github.com/tpope/vim-pathogen 35 | [3]: https://github.com/Shougo/neobundle.vim 36 | [4]: https://github.com/gmarik/vundle 37 | 38 | --------------------------------------------------------------------------------