Created
December 9, 2015 02:13
-
-
Save tenomoto/5ff3d7769f53bd890fe1 to your computer and use it in GitHub Desktop.
Count occurrence of a particular word in vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" n prevents replace | |
" in line | |
:s/word//gn | |
" in file | |
:%s/word//gn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment