I was trying to match end of lines, and do a replacement:
: % s/\n/<\/li>\n/g
to add a </li> to the end of a every line in an unordered list in an html document.
However, the '\n' that is substitutded is not right!
To prove this to myself, I tried:
and sure enough, every '\n' that is found is replaced by what looks like a ^@ in vi, as opposed to just staying the same!! What is going on?