I would like my status line to display wrap/nowrap.
set statusline +=%{execute(':set wrap')}
doesn't work. How do I do this?
Thanks!
I would like my status line to display wrap/nowrap.
set statusline +=%{execute(':set wrap')}
doesn't work. How do I do this?
Thanks!
Copyright © 2021 Jogjafile Inc.
Try the following, which works for me:
Here, I used
&wrapinstead of:set wrapto get the current wrap status, and escaped the space\(if you need one).