I followed the advice here to make only one buffer hidden so that it remembers settings like
set bufhidden=hide " This should be the solution
e ++ff=dos " All the ^M symbols disappear (yay)
e " All the ^M symbols reappear (boo)
setl ff " Shows as unix (boo)
set ff " Shows as unix (boo)
set bufhidden=hideis supposed to be the solution.
e ++ff=dosmakes the
^Msymbols disappear from the ends of the lines (they were only present on some lines).
set ffcommands confirm that the
fileformatreverted back to
unixinstead of staying
What am I doing wrong? Is there a solution that will persist?
I thought that my problem might be having set
readonly, but reversing both of these doesn't solve the problem.
I'm not sure if it matters, but the the buffer of interest is opening a Spyder command history file. Spyder frequently updates the file and I want to use Vim to yank content into (say)
tmp.txt for manipulation.