aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/scratch.vim
blob: bf6566dc49822b7ebc07ac7c1764c4a06ab9ac38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
function! scratch#(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