News for hackers. Stuff that matters.
Re:Ask HN: What are your favorite vim/nvim customizations/sh... by greybrunix on Monday February 12, 2024 @09:17AM (#39344996)
One thing I cannot live without: The Emacs-like Scratch buffer. it's quite simple to do in vimscript:

  function Newscratch()
    execute 'tabnew '
    setlocal buftype=nofile
    setlocal bufhidden=hide
    setlocal noswapfile
  endfunction
  com! Ns call Newscratch()

There are no comments on this comment yet.