I would like to know how we can highlight/select a section of a file in vi and delete that section if we don't want to use the dd command to delete one line at at time. There is one where we don't want to delete the whole line , but up to a certain word.
Using you cursor, position yourself where you want to erase, dd has a subtle variant: d0 erases from beginning to cursor d$ erases from cursor to end of line...