Perseus Registered Nov 15, 2005 #1 I am brand new to the world of vi. I was wondering how I would save my text as a .txt file using vi. Is this possible?
I am brand new to the world of vi. I was wondering how I would save my text as a .txt file using vi. Is this possible?
T Tommo Registered Nov 15, 2005 #2 Open it initially using vi <text>.txt and save normally or if you have already created it without the .txt extension just rename it using mv <text> <text>.txt
Open it initially using vi <text>.txt and save normally or if you have already created it without the .txt extension just rename it using mv <text> <text>.txt
P phinsman Registered Nov 17, 2005 #4 You can also, from within vi, specify the filename to save as by typing that filename following :w, in command mode of course. Example: :w myfile.txt
You can also, from within vi, specify the filename to save as by typing that filename following :w, in command mode of course. Example: :w myfile.txt