C
Caute
Guest
Hello to everyone!
I'm trying to find two commands in Vim which do the following:
The range would be from the 24th line until the end of the text. I want to substitute all the text that is from the beginning of each line until the last slash of that line by the expression "module="" (note the quote after the = symbol)
So let's suppose this is the file from the 24th line:
The result should be this:
And then another command that adds a " at the end of each line:
Thanks! and I'm looking forward to help others in this site (not now because I'm a newbie and I can hardly write in English since I speak Spanish)
I'm trying to find two commands in Vim which do the following:
The range would be from the 24th line until the end of the text. I want to substitute all the text that is from the beginning of each line until the last slash of that line by the expression "module="" (note the quote after the = symbol)
So let's suppose this is the file from the 24th line:
Code:
the/fox/jumps/over/the/lazy/dog/asd.txt
A/rabbit/runs/crazily/monkey.txt
The/nice/house/in/the/jungle/elephant.txt
The result should be this:
Code:
module="asd.txt
module="monkey.txt
module="elephant.txt
And then another command that adds a " at the end of each line:
Code:
module="asd.txt"
module="monkey.txt"
module="elephant.txt"
Thanks! and I'm looking forward to help others in this site (not now because I'm a newbie and I can hardly write in English since I speak Spanish)