Currently, I've taken the naive approach:
function! g:ChangesExist()
let l:bufferList = filter(range(1, bufnr('$')), 'buflisted(v:val)')
for l:bufferNumber in l:bufferList
if getbufvar(l:bufferNumber, '&modified')
return 1
endif
endfor
return 0
endfunction
This seems like the most direct method, but I'm wondering if there's some simple option or function call that I'm missing...
--
--
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
---
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/rW6up-ngGLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.