Hacker News new | ask | show | jobs
by DoggettCK 3910 days ago
Opening a new buffer. Figured I'd try :new, and wound up getting good at splits. Still don't know how to just open up a new, blank buffer in the window I'm in without specifying a filename to :e.
2 comments

If you don't mind getting your hands dirty with a little vimscript, you can set the buftype to nofile, and open a "scratch buffer" of sorts.
:enew
Thanks :) I'd completely forgotten about enew.
Just what I needed. Thanks!