LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   To vim expert, I need help (https://www.linuxquestions.org/questions/linux-software-2/to-vim-expert-i-need-help-230475/)

hottdogg 09-14-2004 09:47 AM

To vim expert, I need help
 
I've searched in help doc of vim but i can't find solution for my problem. Maybe this is just my ignorance or vim doc isn't comprehensive enough, i don't know. Anyway, my question:

How to delete highlighted search result in vim?

e.g. if i want to delete word "wolf" in file , i just search w/ command:
Code:

/wolf [enter]
right?

and then what should i type next to delete word "wolf" ?

Thanks 4 the answer.

serz 09-14-2004 10:01 AM

dw

slackie1000 09-14-2004 01:14 PM

hi there,

this was not his question. I suppose that the idea was delete all wolf entries in a file.
So, my solution:

Code:

:%s/wolf//g

probably, there must be another 100000000 solutions for this problem.


regards

slackie1000

hottdogg 11-05-2004 05:54 AM

Thx, slackie1000, it works! :D


All times are GMT -5. The time now is 01:39 AM.