HomeToolsAbout

Search or Replace

Search

Enter provision mode and search the contents of the current file.

Pressing enter after typing the keyword will take you to the first match.

# start search /search_term # Move to next keyword match in provision mode n # Move to previous keyword match in provision mode shift + n # Select all matching occurrences * # Select all matching occurrence without word boundary g*

Replace

Replace the matching old text with new

:%s/old/new

Find all occurrence of original_string and replace them with new_string while confirming replace on each occurrence

:%s/old/new/gc
AboutContact