working with 1st or last characters of every line in vim
0
Remove the last char from every line
1 |
:%s/.$//g |
Insert a * in the beginning/end of every line
1 2 3 4 5 6 |
:%norm I* % = for every line norm = type the following commands A* = append '*' to the end of every line I* = insert '*' to the beginning of every line |