- 论坛徽章:
- 0
|
*Undo
& redo
In command
mode(pressing from text-inserting mode
undo the last
change
undo all the
changes
to redo something
changed by undo
*Scrolling
text
In command
mode(pressing from text-inserting mode)
scroll one screen
back
scroll one screen
forward
scroll half
screen back
scroll half
screen forward
*Search
and replace text
/text search “text” in forward direction
from the current cursor loaction
?text search “text” in backward
direction from the current cursor loaction
/ repeat previous search in forward direction
? repeat previous search in
backward direction
n repeat the search in the
same direction
N repeat the search in the
opposite direction
*Copy
and paste text
copy or yank currenr line
copy n lines start from
current line position
paste the yanked line(s)
after current cursor
paste the yanked line(s)
before current cursor
move current line and paste it after line number a
move lines from a to b, and paste after line number c
copy lines from
a to b, and paste after line number c
*Importing
and exporting text
Import:
import all
content of “filename”after the cursor in your vi screen
Export:
save current file as file2
save line 3 to 47 as file4
#end of chapter 5#
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14038/showart_79259.html |
|