Uncommenting Multiple Lines
Steps:
1. Open the File: Open the file in Vi/Vim editor and follow the same procedure mentioned earlier.
2. Navigate to the beginning of the block: Position the cursor at the start of the lines you intend to uncomment.
3. Enter Visual mode: Activate visual mode with ‘Shift+V’ and select the lines to be uncommented by using the arrow keys.
4. Uncommenting the Lines: Enter command-line mode with ‘:’ and type ‘s/^#//’, then press ‘Enter’. This command will remove the ‘#’ character from the beginning of each selected line.
5. Exit Visual mode by pressing ‘Esc’. If you wish to save your changes and quit, press ‘:wq’ and press ‘Enter’.