I'm repeating the following characters at the end of each line:
^ [ [00m How can I remove them from each row using the Vim editor?
When I command :% s / ^ [[00m / / G , it does not work.
You :% S / \ {6} $ // literally deletes 6 characters from the end of each line. : starts with the start mode that lets you execute a command. % is a range that specifies that this command should work on the whole file. Stands for s option and changes the string after a pattern and in the format s / pattern / replace / . In this case our pattern is . \ {6} $ means the exact 6 times ( \ {6} ) from any character (. ) After the end of the line ( $ ) and replace it with our replacement string, which is nothing, so, as I said above, it matches the last 6 letters of each row and they Without changing some space
Comments
Post a Comment