EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Editor ]

"VI FILE REMOVAL" - Ülkü SAYILAN - (2005-02-01 15:33:39)   [4573]


If you have opened several files
in vi and you want to remove the
file you are currently viewing,
then you can map the F1 key for
removing the file like:

:map #1 :!rm %^M^M

Just press F1 and the file will
be removed. ^M is put by pressing
Ctrl-V and Ctrl-M one after another.

Mail to My Friend , Home Page