I have a file in linux that has json data in each new line. When I open that file in vi editor, multiple @ symbols show up at the end of every record in a new line. The file does have new line after every record ($ shows up). I'm unable to remove these @ symbol from the file. Here's a snippet of the file -
ABCD","REFnum":"1123"}]}
@
@
@
@
{"Act":01,"tx":
Can someone help and recommend a solution to remove these?
od -t x1acand check. I suspect vi is substituting these for something non-displayable. Very likely to be NUL 0x00.:set nuas a vi option. Not sure of the logic, but ifvicannot show all of a very long line that is the last one in the current viewing area, it pads the screen with @ to indicate that it is refusing to show the first part of the next long line.od -t x1ac yourfilefrom a few lines beforeABCD","REFnum":"1123"up to a few lines after{"Act":01,"tx":set display+=lastlinehelp? See also vim.fandom.com/wiki/Working_with_long_lines In short: The@characters are not part of your file, just an indication of long lines.