On Tuesday 13 December 2005 01:52, Daevid Vincent wrote: > Is there any recommended text viewer/editor whereby I can easily step > through the files (previous/next file), read .gz files, jump to the end of > a file, and most importantly, delete the current file?
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). The second line tells vim to move to the next file, but to ignore the fact that you have a buffer opened that hasn't been written yet. :p goes to the previous file, if you haven't deleted it. Actually thinking about it, you can do the same thing with less - !rm $filename works too. -- [email protected] mailing list

