:%s/\<foo\>/bar/gc
Change only whole words exactly matching 'foo' to 'bar'; ask for confirmation.
Created
May 19, 2017 10:26
-
-
Save guiwuff/e87ba6ab8ca290118e4e5b45200e4087 to your computer and use it in GitHub Desktop.
Find and Replace text in vim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment