Creating a list of files paths in your buffer or Change list - VIM

I'm sure there is a better way to do this, but here is a down and dirty version.
This function gets the paths of files in you buffer list a puts them in :reg f.
You can paste it to a new buffer and format it in a way that you like.


function! GetFileList()
    let @f = ''
    bufdo let @f = @f . " " . expand("%:p")
endfunction

Comments

Popular Posts