Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VI is only letting me delete text, and not adding text, for example "1024x768"
What gives? This is so fricking complicated, and has NO MANUAL!!!!
HELP I have been trying to edit and get my X up and running with the proper Resolution after screwing it up by accidentally setting my resolution too high. This is rediculious how much time and energy this takes to solve such a simple issue.
So how do I get VI to let me to FULL editing, and not just deleting and screwing it up MORE!
Ok now I can edit, and change and delete and type.....but now the commands :w and :q and <SHIFT> ZZ are typing text, and not issuing commands... WHAT THE HECK!!!!
Vi is super efficient once you know it, but far from intuitive. You might be better off using an easier editor like nano or pico to get you up and running.
For a super quick tutorial: you have to switch between command and writing mode by pressing escape to get into command mode - then you can type in commands and you will see them echoed at the very bottom of the screen. Press i (case sensitive) to get back into insert mode, then escape to get back into command mode etc etc.
Ok I finally go X up and running. I had to hit the Esc key to get back to NOT EDITING and issuing commands. Is the a fricking manual for this stuff, or is it always guess work?
I thank you greatly for the help guys. Unfortunately I tried using pico, and it was not a recognized command. I guess it's not installed, and I couldn't install it (or didn't know how to). So I was forced to using VI.
I am guessing you are using redhat. It makes no sence why redhat only has vi for a text editor. It has every other package installed, why not throw in pico or nano.
Past the point, maybe, since you got it straightened out, but for future reference or others' reference...
If you're in vim and don't know what to do, hit 'escape' to make sure you're in command mode. Type ':' to get to the vi command line. Type 'help' to get help.
If you're in vim and want to get out, hit escape a zillion times because you're probably pretty annoyed and it'll make you feel better. Then hit ':' and 'q!', which means, basically, 'Command - quit and I mean it!'
Basically, if you use a gui editor, you can't edit while you're mousing over a menu, right? Or you use an accelerator like 'Alt-F' to open the file menu, right? It doesn't actually type an F. Same with vim - command mode is like a GUI menu mode. When you type 'i' in command mode, it doesn't insert an 'i'. It gets you into insert mode. Then you start typing as normal. Just like when you move off the menu with a mouse or hit 'escape' to close the menu, you start typing again as normal.
Vim just has 'modes' instead of menus. A command mode and insert mode instead of a menu bar and a text area. In a sense, it's a freaking pain and in a sense it's perfectly normal. And if you've seen gvim's menus and think how many things there are on them and how they represent a small fraction of what vim can do, you can see vim's pretty powerful.
But - if you don't have pico or nano or joe or whatever, you should really have mc. That has an internal editor that's very DOS-like. Very easy to use and comes complete with nifty highlighting. Either invoke it from within mc or issue 'mcedit' and, if you've got the symlink, it should bring up the editor component.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.