---
title: "Vi替换 "
author: "mgoann"
date: "2010-06-20T14:39:36Z"
tags: []
categories: ["操作系统"]
slug: "vi"
draft: false
lastmod: "2010-06-20T14:39:36Z"
id: 695014
url: "https://mgoann.iteye.com/blog/695014"
---

### [Vi替换](http://writeblog.csdn.net/blog/571346)

在用vi编辑某个文本时，发现需要将大量相同的关键字替换，使用命令:%s/xxx/xxx,或是:n,$s/xxx/xxx