博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月21日

摘要: To substitute new for the first old in a line: type :s/old/newTo substitute new for all old on a line: type :s/old/new/gTo substitute phrases between two line #'s: type :#,#s/old/new/gTo substitute all occurrences in the file: type :%s/old/new/gTo ask for confirmation each time add 'c': 阅读全文

posted @ 2011-09-21 21:15 douyamumu 阅读(128) 评论(0) 推荐(0)