i.e. to show a value (let’s say, for the purpose of this example, set tabstop? … 8), but when that value changes to show the changed value?
I’m playing with Vim to see if I could setup a menu which would display some of my more used settings to save up on set setting? … any ideas?
I also find it a little bit unusual to put settings values into the menu (a menu item usually is associated with an action that is triggered by selecting it), and would also recommend using either the
'statusline'(for settings that you want to see in parallel for each open buffer) or'titlestring'(for settings that you only need for the current buffer).You can use the
:menuand:unmenucommand to dynamically create and update menu items. Unlike the above mentioned mechanisms, however, Vim will not automatically trigger the updates; you have to do this with:autocmds on the appropriate events (e.g.CursorHold) yourself.