Hello all,
my name is Marvin. I am working on obtaining my linux system administrator certificat. I created a file with a few sentences. The only task that I am having problems with is to delete word "and" using the vi last-line mode. I know hot do delet a word with out using the last-line mode by just moving to the word and typing 'x' until the word is gone. But this is not how I am supposed to do it. I have read the entire chapter on the vi section and I cannot find an example or the command to do it. The closes thing I found was to do: :5,$s/(and) and ()/\2 and \1/
but this last command deletes all the "and." I have tried googling for a vi command and all I find is the 'x' option. Please help!