On 03:59 Fri 05 Apr     , Guy Rutenberg wrote:
> Hi,
> 
> Is there a way to list all modified buffers? E.g. I want all the modified 
> buffers that can be iterated by :bmodified listed in a :cl style list.
> 
> Thanks,
> 
> Guy
> 
> -- 
> -- 
> 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 the Google Groups 
> "vim_use" 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/groups/opt_out.
> 

Hi,

You can use a simple loop like this:

fun! Bmod()
    for bnr in range(1,bufnr('$'))
        if getbufvar(bnr, '&modified')
            echo bnr '"'.bufname(bnr).'"'
        endif
    endfor
endfun
command Bmod :call Bmod()

I don't know of a built in command/function to do that.

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" 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/groups/opt_out.


Reply via email to