Regular expressions in Ex Mode
Edit a regular expression in Ex mode
Suppose you are searching for a Title Case
pattern in a large text file and you want to edit a incorrect regular expression:
- First, go into
Ex
mode by typingq:
- You will now see all the commands that you typed in
commandline
mode, pressj
to go the regular expression you want to edit (/\v[A-Z]\w+\s[A-Z]\w+
) - Once done, press
ESC
to go to normal mode - Then press
Enter
to run the search patten
Here is a screen shot demonstrating a Title Case
search