Vim - string replacement from current position to end of file
What is the vim command I have to use when I want to perform a text substitution not on the current line or on the whole document or on lines from number x to number y but just from the current cursor position down to the end (or up to the beginning) of the document?
|
Code:
:.,$s/pattern1/pattern2/g Code:
:1,.s/pattern1/pattern2/g Hope this helps :) |
All times are GMT -5. The time now is 01:50 AM. |