Vi questions

Hello,

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.

If you have "vim", you could use visual selection mode. Read more at the below URL:

Cut/copy and paste using visual selection - Vim Tips Wiki

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...