vim search and replace except selected code example Example: linux vim replace all %s/{the word you want to find}/{word to replaced with }/gc