junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Goyo doesn't reset :set list on exit #251

Open lloeki opened 3 years ago

lloeki commented 3 years ago

Experienced: Entering Goyo disables :set list. Exiting Goyo doesn't reset :set list to its previous state before entering.

Expected: Leaving Goyo should restore :set list as it was for that buffer before entering, like it does for :set number.

Note: I have :set list by default (except for some specific files, or manually toggled off) which made it quite noticeable.

lloeki commented 3 years ago

Ah, wait I had this:

nmap <leader>z :set nolist<CR>:Goyo<CR>

So in that context, it's on me to reset it afterwards.

I'm still on the opinion that, like :set nonum, Goyo should :set nolist on entry and reset back on exit, as list newline markers show up on the padding buffers:

image