vim - Can I somehow add my own info to the status line via vimscript -
vim - Can I somehow add my own info to the status line via vimscript -
can somehow add together own info status line via vimscript? need create plugin update value in status line after time.
thanks in advance.
the 'statusline' alternative configures shown in status line. can add together value of arbitrary vimscript expressions via %{expr} syntax, e.g.:
:set statusline+=\ %{localtime()} note gets invoked frequently, shouldn't much processing. alternatively, insert (buffer-local) variable, , utilize other means (:autocmd) update variable value when necessary.
if plan create plugin reusable, improve not straight mess 'statusline' option, offer (global or autoload) function , instructions users include in personal alternative value.
vim
Comments
Post a Comment