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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -