vim-bufkill
vim-bufkill copied to clipboard
overwrite built-in commands
Hi, thanks for the cool plugin!
I find it useful to overwrite built in commands. Just commenting it here in case you want to add it to the README:
cabbrev bd <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'BD' : 'bdelete')<CR>
cabbrev bun <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'BUN' : 'bunload')<CR>
cabbrev bw <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'BW' : 'bwipeout')<CR>
Thanks for the message, and for the suggestion - seems a great idea! I'll add it soon. Glad it's helping you! John
On 22 October 2015 12:42:17 am Alvaro [email protected] wrote:
Hi, thanks for the cool plugin!
I find it useful to overwrite built in commands. Just commenting it here in case you want to add it to the README:
cabbrev bd <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'BD' : 'bdelete')<CR> cabbrev bun <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'BUN' : 'bunload')<CR> cabbrev bw <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'BW' : 'bwipeout')<CR>
Reply to this email directly or view it on GitHub: https://github.com/qpkorr/vim-bufkill/issues/7