On Tuesday 13 December 2005 20:22, Manuel McLure wrote: > Ben wrote: > > vim. There's probably other (better) ways, but: > > :!rm $filename > > :n! > > > > The first line tells vim to execute the shell command rm, you have to > > give it the filename, but that's displayed in the buffer anyway (or you > > can get it with ^G). > > Try: > :!rm % > > "%" in a shell escape gets replaced with the name of the current file.
I knew there'd be some way of getting that, but I couldn't find it, thanks. Works with both vim and less too. -- gentoo-user@gentoo.org mailing list