Created
January 9, 2014 03:22
-
-
Save hayajo/8328903 to your computer and use it in GitHub Desktop.
vim-refでcodic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:ref_source_webdict_sites = { | |
\ 'codic': { | |
\ 'url': 'http://codic.jp/search?q=%s', | |
\ 'keyword_encoding': 'utf-8', | |
\ 'cache': 1 | |
\ } } | |
function g:ref_source_webdict_sites.codic.filter(output) | |
return join( split(a:output, "\n")[15 :], "\n" ) | |
endfunction | |
nnoremap [ref] <Nop> | |
nmap <Leader>r [ref] | |
nnoremap <expr>[ref]c ':Ref webdict codic ' . expand('<cword>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment