Hi,

I have this kind of script :

let g:startTime = reltime()
autocmd BufLeave,BufEnter * call s:FOO("c:/infos.txt")


function! s:FOO(temp_file_name)

        echo "Temps écoulé " . reltimestr(reltime(g:startTime))
        call s:LeaveAndReEnterBuf()

endfunc

func! s:LeaveAndReEnterBuf()
        sleep 100m
        echo "Quit and go back to the same buffer"
        exec "normal \<C-W>h"
        exec "normal \<C-W>l"
endfunc


I would like with s:LeaveAndReEnterBuf to periodically call my s:FOO
func.
But this is not working. Just one time.
Why ?
Thanks

-- 
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

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to