Skip to content

Instantly share code, notes, and snippets.

@c9s
Created May 28, 2009 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c9s/119172 to your computer and use it in GitHub Desktop.
Save c9s/119172 to your computer and use it in GitHub Desktop.
nmap <C-x><C-i> :call InstallCPANModule()<CR>
function! InstallCPANModule()
let cw = expand('<cWORD>')
let cw = substitute( cw , ";$" , "" , "g" )
let cw = substitute( cw , "['\"]" , "" , "g" )
echo "Installing CPAN Module: " . cw . "\n"
silent exec "!cpanp i " . cw . " >& /dev/null"
echo "Done\n"
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment