vim usage skill
时间:2009-08-08 来源:creatory
1.Replace:
:1,$s/pritf/printf
this will replace "pritf" with "printf" from the first line to end.
2.Find:
/pattern
find backward.
if you want to find next,only type / and press enter.
?pattern
find upward.
if you want to find next,only type ? and press enter.
3.Quit:
:wq or :x
:1,$s/pritf/printf
this will replace "pritf" with "printf" from the first line to end.
2.Find:
/pattern
find backward.
if you want to find next,only type / and press enter.
?pattern
find upward.
if you want to find next,only type ? and press enter.
3.Quit:
:wq or :x
相关阅读 更多 +