tpope / vim-obsession

obsession.vim: continuously updated session files
http://www.vim.org/scripts/script.php?script_id=4472
1.76k stars 70 forks source link

Fileencoding override is not preserved #64

Closed L1Q closed 3 years ago

L1Q commented 3 years ago

Sometimes I have to reload a buffer with :e ++enc=cp1251 ++ff=dos. This allows me to see and write cyrillic characters correctly. After session reloading however the encoding is reset and the aforementioned command has to be run again.

Related vim doc: http://vimdoc.sourceforge.net/htmldoc/editing.html#++enc

This is likely a vim issue and not obsession issue, expecting workarounds and plugin suggestions.

tpope commented 3 years ago

Yeah, sounds like a Vim issue. Doing :set sessionoptions+=localoptions might help by storing 'enc' and 'ff' in the session. I'll let you test.

L1Q commented 3 years ago

sessionoptions does not seem to help.