Question: 1. Assume you are editing the main.cpp file. Write a vim command to split every ling longer than 40 characters into multiple lines, each of
1. Assume you are editing the main.cpp file. Write a vim command to split every ling longer than 40 characters into multiple lines, each of which is no longer than 40 characters (but may be shorter), and do not split any quoted strings.
2. Assume you are editing the main.cpp file. Write a vim command to change every singular "<" symbol to a double quote ("), but do not convert any double "<" symbols, i.e. leave the "<<" operators alone.
3. Assume you are editing the main.cpp file. Write a vim command to replace all newline characters (' ') with semicolons (;). The result should be a file with a single line containing ";" characters where the newlines used to be.
4. Assume you are editing the main.h file. Write a vim command to append the contents of main.cpp to the end of the main.h file. Do not assume you know the contents of the main.cpp file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
