Skip to content

Instantly share code, notes, and snippets.

@hayajo
Created January 9, 2014 03:22
Show Gist options
  • Save hayajo/8328903 to your computer and use it in GitHub Desktop.
Save hayajo/8328903 to your computer and use it in GitHub Desktop.
vim-refでcodic
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