> I don't see what you mean with "breakable".

Sorry, I was confused. Until Patch 7.4.457, getchar() doesn't return 
"\<CursorHold>". (However 0x80 0xFD was returned)

I meant getchar() return only when it used with <expr>.


augroup hogehoge
    autocmd!
    autocmd CursorHold,CursorHoldI,WinEnter * setlocal cursorline
augroup END

function! s:foo()
    let c = 0
    while c == "\<CursorHold>"
        let c = getchar()
    endwhile
    echomsg c
    return ''
endfunction

nnoremap <expr>f <SID>foo()

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui