https://vim.fandom.com/wiki/Entering_special_characters
29 December 2021
21 December 2021
How to change multiple rows into one row in vim?
How to change multiple rows into one row in vim?
Check how many rows are there totally (e.g. 50)
50J
Check how many rows are there totally (e.g. 50)
50J
How to change a one-row text into multiple rows in vim?
How to change a one-row text into multiple rows in vim?
:%s/; /\r/g
The above command replaces '; ' with \r (carriage return)
:%s/; /\r/g
The above command replaces '; ' with \r (carriage return)
How to append some text to each row in vim?
How to append some text to each row in vim?
:%s/$/,/g
:%s/$/,/g
How to remove duplicate rows in vim?
How to remove duplicate rows in vim?
:sort u
:sort u
Subscribe to:
Posts (Atom)