My approach to this problem is to use the line select (shift-V, move the cursor) to select the lines of interest, and then type:
:s/..$//
This is a regular expression lookup ..$that matches the last two characters at the end of the line. Then replace βnothingβ, i.e. Remove.
In vim, as soon as you click :with active row selection, the command line will show:
:'<,'>
What will be the beginning and end of the selection addresses for the next command (in this case)
source
share