aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/scratch_buffer.vim
blob: c0ef7cfce618f5f425a30d8b5470e1913753a05e (plain)
1
2
3
4
5
6
7
8
9
10
11
function! scratch_buffer#(mods, count, ...) abort
  let command = []
  call add(command, a:mods)
  if a:count
    call add(command, a:count)
  endif
  call add(command, 'new')
  call extend(command, a:000)
  execute join(command)
  set buftype=nofile
endfunction