I'm running a Vimscript that retrieves the result of a message and redirects it to a vimscript variable.  When the contents of the vimscript variable are displayed, it has a ^@ in it.  What does that represent and how can I get rid of it?
What is a ^@ in vim?
vimscript
^@, if you look at man ascii, is the ASCII NUL character. And from the help:Technical detail:               *NL-used-for-Nul*<Nul> characters in the file are stored as <NL> in memory.  In the displaythey are shown as ^@.  The translation is done when reading and writingfiles.  To match a <Nul> with a search pattern you can just enter CTRL-@ orCTRL-V 000.  This is probably just what you expect.  Internally thecharacter is replaced with a <NL> in the search pattern.  What is unusual isthat typing CTRL-V CTRL-J also inserts a <NL>, thus also searches for a <Nul>in the file.  {Vi cannot handle <Nul> characters in the file at all}You should look at eliminating it from the source. If that's not an option, do, using <c-@> as given in the docs::s/^@//g