aze Posted December 15, 2002 Report Share Posted December 15, 2002 Hi everybody! Which editor(s) can I use in text console mode different of VI? VI is odd :? How can I save a text file? Everytime I open a file with vi I don't know how to close it. Thanks any help Quote Link to comment Share on other sites More sharing options...
Glitz Posted December 15, 2002 Report Share Posted December 15, 2002 VI is a bit wonky but doing simple editing with it is pretty easy once you know how. VI is a modal editor. When you start it up you are in command mode. You can scroll around but can't edit anything. To get into edit mode you press i. Now you can modify the text all you want. Pressing ESC will exit edit mode and go back to command mode. Once you have modified the text to your satisfaction you can write it back to the file by issuing the write command. Press :w <ENTER>. To exit issue the exit command by pressing :q <ENTER>. If you made modifications but don't want to save them then the program will not let you exit this way (as a precaution against losing your changes). In this case you have to type :q! <ENTER> in order to exit. Once you've used it for a bit you'll get used to it. Glitz. PS. I don't really like it much either but it gets the job done. Quote Link to comment Share on other sites More sharing options...
aze Posted December 15, 2002 Author Report Share Posted December 15, 2002 thank you! So do I. Do you know a better simple text editor? Quote Link to comment Share on other sites More sharing options...
bvc Posted December 15, 2002 Report Share Posted December 15, 2002 If you use gnome, there's gvim with a toolbar and such. It's what I use. gvim -reverse There's a tutorial that's usually installed with vi by default, and should be accessible at a vi startup. If not, use the Software Mgr and search for vi.[/url] Quote Link to comment Share on other sites More sharing options...
aze Posted December 15, 2002 Author Report Share Posted December 15, 2002 I don't have gvim installed. I just like one for simple editing text files in non-graphical session Quote Link to comment Share on other sites More sharing options...
bvc Posted December 15, 2002 Report Share Posted December 15, 2002 I here pico is a lot easier. vim-enhanced (vim) is basically vi with color and some other options Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted December 16, 2002 Report Share Posted December 16, 2002 VI tutorial for beginners: http://www.troubleshooters.com/lpm/200212/200212.htm Quote Link to comment Share on other sites More sharing options...
aze Posted December 16, 2002 Author Report Share Posted December 16, 2002 thank you! I'll check it! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.