A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

5

Use :h <afile> to get unloading buffer name, use :h getbufvar() to get buffer local variable. let b:example_tempfile = tempname() augroup example au! au BufUnload <buffer> echom getbufvar( expand('<afile>'), 'example_tempfile' ) augroup END bunload % -------------------------------- /tmp/vovl8Be/48


Top 50 recent answers are included