vim-bufkill icon indicating copy to clipboard operation
vim-bufkill copied to clipboard

overwrite built-in commands

Open pwntester opened this issue 9 years ago • 1 comments

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>

pwntester avatar Oct 21 '15 13:10 pwntester

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

qpkorr avatar Oct 21 '15 20:10 qpkorr