> something's up with my vi(m) editor in my mac pro Terminal app (Mac OS 
> Catalina) and it's driving me insane.
> 
> It happens when I make a new file, say a python function in which I might 
> write from the command line:
> 
> $vim function.py
> 
> def function(variable):
> 
>    pass
> 
> then I type :wq to save it and exit.
> 
> Next time I open it I'll see each letter bracketed by ^@, as in:
> 
> ^@d^@^@e^@^@f^@ ^@f^@^@u^@^@n... you get the idea.
> 
> 
> Interestingly, if I add text to an existing file, save it and close
> it, the issue isn't there next time I open it. It seems to happen only
> when I make a fresh file and with vim 8.1.2292 as well as 8.2.1719.
> 
> 
> Any help to solve this would be much appreciated.

Check the 'fileencoding' and 'encoding'.  I suspect one of them is
utf-16.  Perhaps a plugin sets 'fileencoding' for this filetype, check
with:
        verbose set fileencoding?


-- 
>From "know your smileys":
 :-F    Bucktoothed vampire with one tooth missing

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/202010191113.09JBD2hl1116449%40masaka.moolenaar.net.

Reply via email to