vim delete from delimeter to end of line for all lines 1

vim delete from delimeter to end of line for all lines

# Basic syntax:
:%norm $TD
# Where:
#	- % indicates that the command should be applied on all lines
#	- norm indicates that the command is to be run in normal mode
#	- $T - not sure - probably something like "to end of line"
#	- D indicates delete

Here is what the above code is Doing:
1. It’s going to the end of each line
2. It’s going to the first character that is not a space
3. It’s deleting everything from that character to the end of the line

Similar Posts