Hi vim_use!

I'm trying to read some info from a file to the status line. The file is
changed by an external command (basically a latex compiler). How can I run
a function (which reads the file) when the file changes without using vim
client-server communication. Any ideas?

The best what I can get is using :redrawstatus on CursorMoved or sth similar,
but it is not as good as I would like to.

To be more precise the setting is sth like this:

set statusline=%{ReadFile()}
fun! ReadFile()
    " read some file and get an integer i from it.
    return i
endfun

Best,
Marcin

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
  • [no subject] Marcin Szamotulski
    • Re: Ben Fritz
      • Re: Marc Weber
        • Re: Marcin Szamotulski
          • Re: Ben Fritz
            • Re: Marcin Szamotulski
        • Re: Benjamin R. Haskell
          • Re: Marcin Szamotulski

Reply via email to