My web server - 74Part ILinux First StepsUsing Numbers with CommandsYou can

74Part ILinux First StepsUsing Numbers with CommandsYou can precede most vi commands with numbers to have the command repeatedthat number of times. This is a handy way to deal with several lines, words, or char- acters at a time. Here are some examples: CommandDescription3dwDeletes the next three words. 5clChanges the next five letters (that is, removes the letters and entersinput mode). 12jMoves down 12 lines. Exploring Other Text EditorsDozens of text editors are available to use with Linux. Here are a few that might be in yourLinux distribution that you can try out if you find vi to be too taxing: Text EditorDescriptiongeditThe GNOME text editor that runs in the GUI. jedThis screen-oriented editor was made for programmers. Using colors, jedcan highlight code you create so you can easily read the code and spotsyntax errors. Use the Alt key to select menus to manipulate your text. joeThe joe editor is similar to many PC text editors. Use control and arrow keysto move around. Type Ctrl+Cto exit with no save or Ctrl+Xto save and exit. kateA nice-looking editor that comes in the kdebase package. It has lots of bellsand whistles, such as highlighting for different types of programminglanguages and controls for managing word wrap. keditA GUI-based text editor that comes with the KDE desktop. mceditWith mcedit, function keys help you get around, save, copy, move, anddelete text. Like jed and joe, mcedit is screen-oriented. neditAn excellent programmer s editor. You need to install the optional neditpackage to get this editor. If you use ssh to log in to other Linux computers on your network, you can use any editorto edit files. A GUI-based editor will pop up on your screen. When no GUI is available, youwill need a text editor that runs in the shell, such as vi, jed, or joe.

Leave a Reply