Skip to content

Instantly share code, notes, and snippets.

@tommcdo
Created April 2, 2014 12:41
Show Gist options
  • Save tommcdo/9933300 to your computer and use it in GitHub Desktop.
Save tommcdo/9933300 to your computer and use it in GitHub Desktop.
function! s:sargs()
execute 'arglocal! '.join(map(tabpagebuflist(), 'bufname(v:val)'), ' ')
execute winnr().'argument'
execute 'only'
endfunction
command! Sargs call s:sargs()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment