User Tools

Site Tools


lx103:notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
lx103:notes [2024/04/29 06:03]
114.119.141.71 old revision restored (2023/11/21 17:05)
lx103:notes [2024/04/29 06:04]
114.119.145.194 old revision restored (2023/10/13 16:42)
Line 451: Line 451:
   * find /etc -name motd   * find /etc -name motd
     * search in /etc for files containing motd.     * search in /etc for files containing motd.
 +
 +====== VIM / VI Text Editor ======
 +Light, installed on most machines.
 +
 +  *CMD MODE
 +    * hjkl, move L R U D
 +    * L - Move to last line of TERMINAL, not DOC
 +    * H - move me to top of term.
 +    * G - move to last line in file
 +    * 1G - moves to first line of file.
 +    * 40G - goto line 40
 +    * :40 - also goto line 40
 +    * yy - yank/cp line
 +    * p - paste
 +    * P - paste on line before the cursor 
 +    * u - undo
 +    * 5yy - yank 5 lines
 +    * / - search for text
 +    * n - continue forward in search
 +    * N - go backwards in search
 +    * dd - cut line
 +    * 5dd - cut 5 lines
 +    * ? - search
 +    * cc = del line + goto insert mode
 +    * 
 +    * EX MODE
 +    * :%s/HostKey/wahoo - will change first ocurrence of HostKey with wahoo on each line.
 +    * %s/test/wahoo
 +    * %s/test/wahoo/g - change ALLLLL occurrences (thanks /g!)
 +    * :q! - quit
 +    * :wq - write quit
 +    * :w - write
lx103/notes.txt ยท Last modified: 2024/05/15 11:22 by 114.119.149.71