Originally Posted by sabahh
How do i delete a specific string in vi? Suppose i want to delete only the instance "ing" occuring in a file through vi , how could i do this??
Not sure whether it is possible through vi, but you can very well do this through command prompt
Have a backup of the file and
use the following command
cat filename | sed 's/ing//g' > filename
If this results in empty file use the commands shown below
sed 's/ing//g' filename > temp
mv temp filename
Hope this helps...