Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi there. My environment is Ubuntu as a VM under VirtualBox. I just installed vim (text editor for programmers) and decided to write a simple fortran program. Well, the editor does not allow me to enter any text. When I type even a single character, a dull sound sounds and a red color message appears at the bottom of the editor:
Vim is quite a sharp tool, and as such, it's going to take real work to get to using it well if it's your first time. I happen to like this intro Learn Vim Progressively, but there are other Vim resources as well.
If you don't end up wanting to learn how to drive Vim, gedit for the GUI environment and/or nano for the command line. Both of those trade off ultimate text editing power for ease of use.
In another thread I once posted some instructins for quickly getting oriented with Vim - find it here, and look over the other helpful posts in that thread as well.
Here is a short paste from that post that might help you get going quickly...
Quote:
Next, get oriented quickly!
I think the most difficult thing for people who simply open vi or a clone is that they see the blank page and begin typing - and weird stuff happens! Then they can't get out of it and they leave in frustration thinking the learning curve is too steep!
So to get past that point as quickly as possible note the following:
1. Vi(m) has two modes - command mode and insert mode (also called normal mode and edit mode respectively).
2. When you first start vi it is always in command mode, so key presses are interpreted as commands, not text.
3. To enter insert mode from command mode simply press i, then begin typing your text.
4. To return to command mode at any time simply press the ESC key.
You will see helpful status messages in the lower left corner of the terminal window as you change modes.
To leave vi you must be in command mode (pres ESC if not sure) then try one of these:
ZZ (shift-zz) - writes (saves) the current edits and exits.
:wq - writes (saves) the current edits and quits (same as ZZ).
:q - quit, prompts you to save any unsaved edits first (:w will write the to file)
:q! - quits without saving edits.
Also - from a terminal simply type vimtutor to get the always present on demand Vim tutor!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.