Differences between version 5 and predecessor to the previous major change of VimHowto.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Friday, May 30, 2003 5:20:58 pm | by JohnMcPherson | Revert |
Older page: | version 4 | Last edited on Tuesday, May 13, 2003 3:14:55 pm | by SamJansen | Revert |
@@ -37,8 +37,17 @@
> Indent the current selection.
< De-indent the current selection.
While in normal mode, pressing 'p' will paste.
+
+----
+! Search and replace
+
+In normal mode,
+ :s/(search regex)/(replace string)/
+to replace text on the current line, or
+ :%s/regex/replace/
+for the whole buffer.
----
! Navigating Multiple Files