---
title: "VIM 查找 返回结果个数"
author: "looksgood"
date: "2014-02-21T16:58:14Z"
tags: []
categories: ["操作系统"]
slug: "vim"
draft: false
lastmod: "2014-02-21T16:58:14Z"
id: 2020309
url: "https://looksgood.iteye.com/blog/2020309"
---

转载：http://blog.csdn.net/sjf331/article/details/2637428

 

:%s/xxx//gn关键是最后的n，代表只报告匹配的个数，而不进行实际的替换。