Ask HN: What are your favorite vim/nvim customizations/shortcuts?

2 points by multiplied ↗ HN

3 comments

[ 4.4 ms ] story [ 16.3 ms ] thread
The ones _I_ have made _myself_ to solve _my_ own problems.
Yes, that's actually largely a part of the question.
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()