

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


u Undo the last action.U Undo all latest changes that were made to the current line.Ctrl + r Redo./pattern Search the file for pattern.n Scan for next search match in the same direction.N Scan for next search match but opposite direction.:rs/foo/bar/a Substitute foo with bar. r determines the range and a determines the arguments.The range (r) can benothing Work on current line only.number Work on the line whose number you give.% The whole file.Arguments (a) can beg Replace all occurrences in the line. Without this, Vim replaces only the first occurrences in each line.i Ignore case for the search pattern.I Don't ignore case.c Confirm each substitution. You can type y to substitute this match, n to skip this match, a to substitute this and all the remaining matches ("Yes to all"), and q to quit substitution.