Linux Workshop (2:30) ___ X Windows Tricks (3:00) ___ Love Your Shell (3:30) ___ Make It Safe (3:45) ___ Keep It New (4:00) ___ Crash Recovery (4:15)

Browsing mode [Esc]

Inserting mode "i"


$ vi ~/.bashrc

    alias rm='rm -i'

$ source ~/.bashrc

$ alias



Remove all control characters by

:%s/[[:cntrl:]]//g

2.1   Vim Text Editor

1. General
Cancel[Esc]
Quit and write:x
Quit without write :q!
Write only:w
Shell command:!
2. Cursor and Screen
Screen Forward Ctrl + f
Screen BackwardCtrl + b
Refresh ScreenCtrl + l
Go to line number:n (first '1', last '$')
Search forward/pattern
Search backward?pattern
Repeat last search   n
3. Edit
Delete charactersndl
Delete wordsndw
Delete linesndd
Join two linesJ
Copy lines to buffer   nyy
Paste from bufferp
4. String Replacement
Single line:s/this/that/g
Lines a-b:a,bs/this/that/g
Whole text:%s/this/that/g
5. Others
Show options:set
Help:h

Previous | Next