emacs, instead (Photography web hosting) of a graphical editor, is that

emacs, instead of a graphical editor, is that you can use it from a Terminal window, a character terminal, or a character-based connection over a network (using telnet or ssh, for example). No GUI is required. This section provides a brief tutorial of the vi text editor. Any time in this book that I suggest you manually edit a configuration file, you can use vi to do that editing (from any shell prompt). The vi editor is difficult to learn at first. But when you know it, you will be able to edit and move files around quickly and efficiently. Your fingers never have to leave the keyboard to pick up a mouse or hit a function key. Starting with vi Most often, you start vi to open a particular file. For example, to open a file called /tmp/test, type the following command: $ vi /tmp/test If this is a new file, you should see something similar to the following: ~ ~ ~ ~ ~ “/tmp/test” [New File] The box at the top represents where your cursor is. The bottom line keeps you informed about what is going on with your editing (here you just opened a new file). In between, there are tildes (~) as filler because there is no text in the file yet. Now here s the intimidating part: there are no hints, menus, or icons to tell you what to do. On top of that, you can t just start typing. If you do, the computer is likely to beep at you. The first things you need to know are the different operating modes. The vi editor operates in either command mode or input mode. When you start vi, you are in command mode. Before you can add or change text in the file, you have to type a command to tell vi what you want to do. A command consists of one or two letters and an optional number. To get into input mode, you need to type an input command. To start out, type either of the following input commands: a Add. After you type a, you can input text that starts to the right of the cursor. i Insert. After you type i, you can input text that starts to the left of the cursor. Type a few words and press Enter. Repeat that a few times until you have a few lines of text. When you are done typing, press Esc. You are now back in command mode. Remember the Esc key! It always places you back into command mode. Now that you have a file with some text in it, try moving around within that text with the following keys or letters: Arrow keys Use the arrow keys to move up, down, left, or right in the file one character at a time. To move left and right you can also use Backspace and the spacebar, respectively. If you prefer to keep your fingers on the keyboard, use h (left), l (right), j (down), or k (up) to move the cursor. w Moves the cursor to the beginning of the next word.
Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision ftp web hosting services

Leave a Reply