Previous Page | Next Page

  1. Introduction
  2. About Linux
  3. Installation and getting started
  4. Logging in and out
  5. Basic Linux Commands
  6. Linux Files and File Permissions
  7. Linux Directory Structure
  8. Finding Files
  9. Linux Help
  10. Setting Time
  11. Devices
  12. Tips
  13. Accessing Other Filesystems
  14. Accessing Removable Media
  15. Making and Managing Filesystems
  16. Emergency Filesystems and Procedures
  17. LILO and Runlevels
  18. Init
  19. Environment, Shell Selection, and Startu
  20. Linux Kernel
  21. Package Installation and Printing
  22. Configuration, Logging and CRON
  23. Keys and Terminal Configuration
  24. Sound Configuration
  25. Managing Users
  26. Passwords
  27. Process Control
  28. Configuration and Diagnostic Tools
  29. Overall Configuration
  30. Using PAM
  31. Basic Network Setup
  32. Tools and Terms
  33. Novell and Printing
  34. Inetd Services
  35. Xinetd Services
  36. Other Network Services
  37. FTP and Telnet
  38. Samba
  39. Identd (auth)
  40. X Configuration
  41. X Use
  42. Using X Remotely
  43. X Documentation
  44. DNS
  45. DHCP and BOOTP
  46. Apache
  47. NFS
  48. PPP
  49. Mail
  50. Routing
  51. IP Masquerading
  52. Proxy Servers and ipchains
  53. UUCP
  54. News
  55. NIS
  56. Network Security
  57. Secure Shell
  58. Text Processing
  59. Shell Programming
  60. Emacs
  61. VI
  62. Recommended Reading
  63. Credits

Linux VI Editor

VI Commands:

iinsert mode, (ESC to exit insert mode) allows text to be entered on the screen
aAppend to right mode
/wordMove to the occurrence of "word"
nLocate the next occurance
wAdvance to the next word
eAdvance to the next end of a word
bMove to the previous word
3bMove backward 3 words
dddelete line
3dddelete 3 lines
DDelete remainder of a line
dwDelete word
xDelete character
oOpen space for new line below the cursor line
OOpen a line above the cursor
CTRL-w Move back a word in append mode
uUndo last
UUndo all changes to current line
.In command mode, repeat the last text changing the command on the current line
:w newfilenamesave the file to newfilename from the command mode
:wqsave and quit
:q!quit without saving
rreplace then typa a character ot be replaced with r then return to break up a line
Jjoin 2 lines
ssubstitute (sentence) typed text over a character, ESC when done
cwchange word
cchange part of a line from the cursor to the end of the line
ccsubstitute new text for aline, ESC when done
hmove the cursor back one space
Hmove the cursor to the highest line on the screen
Lmove the cursor to the lowest line on the screen
Mposition the cursor at the midpoint on the screen
Glast line in the file
0 (zero) Move the cursor to the beginning of the line it is on
view filenameOpen a file for viewing only
set numberTurn on line numbers
set nonumberTurn off line numbers

Options:

number
autoindent (ai)ctrl-d to move to the left
showmatch match brackets and parenthesis
tabstop=4
wrapmargine(wm) when line is wrapped (80-value)
:2 copy 4Place a copy of line 2 after line 4.
:1,4 copy 7 (lines 1-4)
:nAccess the next file for editing