Last Updated: February 25, 2016
·
291
· navieh

ask coding question and have code snippet pasted right in vim

This will paste the code snippet for your coding question right in vim:

nnoremap <leader>h :read !howdoi 

example:

<leader>h get object keys in js

code pasted in vim:

var keys = Object.keys(myJsonObject);

require https://github.com/gleitz/howdoi

Thanks Benjamin Gleitzman for the great tool!