Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 231

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 230
Appendix A. References 213
quit Exit XEDIT if no changes have been made
qquit Exit XEIDT even if changes have not been saved
left <n> Shift ‘n’ characters to the left
right <n> Shift ‘n’ characters to the right
get <file> Copy file and insert past the current line
:<n> Move to line ‘n’
? Display last command
= Execute last command
x <file> Edit ‘file’ and put it into the XEDIT “ring”
x Move to the next file in the ring
Prefix commands
a Add one line
a<n> Add 'n' lines
c Copies one line
cc Copies a block of lines
d Deletes one line
dd Deletes a block of lines
f Line after which a copy (c) or a move (m) is to be inserted
p Line before which a copy (c) or a move (m) is to be inserted
i Insert a line
i<n> Insert 'n' lines
m Move one line
mm Move a block of lines
" Replicate a line
"<n> Replicate a line 'n' times
"" Replicate a block of lines
vi quick reference sheet
Following is a small, but commonly used, subset of vi commands.The vi editor has three
modes:
1. Input mode - using the Insert key, i, o (add a line below), O (add a line above) and other
commands puts you in this mode. When you are in this mode, you will see the text
--INSERT-- in the last line.
2. Command mode - 'Esc' gets you out of input mode and into command mode.
i brings you back to input mode
dd deletes a line and puts it in the buffer
<n>dd delete <n> lines
x delete a character
dw delete a word
p add the buffer past the current location
P add the buffer before the current location
o add a line and go into insert mode
/string - search for string
n do the last command again (this can be powerful)
jkl; cursor movement
A add text at the end of the line
<nn>G go to line <nn>
G go to the last line in the file
yy yank a line (copy into buffer)
<n>yy yank n lines
3. Command line mode - pressing the colon (:) key brings you to this mode.
:wq save (write & quit)
:q! quit and discard changes
Przeglądanie stron 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag