Consider the following script:
    vim -u NONE -c 'redir! > tick' \
                -c 'echo string(getbufvar(bufnr("%"), "changedtick"))' \
                -c 'echo b:changedtick' \
                -c 'qa!'
It ends up having

    ''
    2
in the ./tick file, while there should be

    2
    2
. Tested on vim-7.3.99 (revision 85c5a72551e2).

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui