Step 9 of 9

12. Windows

Popping up a new window for quick notes

Often you’ll find yourself wanting to pop up a new window quickly to write some scratch notes. Vim makes this really fast — either:

  • use the :new command, which creates a new split with an empty buffer open
  • use the <C-w>n mapping in normal mode, which does the exact same thing

Work through the checklist and give both a go. If you’re anything like me, you’ll find yourself doing this super often!

  1. Pop open a scratch window with :new A fresh split will open with an empty buffer inside — type :new and hit Enter.
  2. Map W to stand in for <C-w> Type :nnoremap W <C-w> and hit Enter.
  3. Do the same with Wn Press W then n (real Vim, <C-w>n) — same result, fewer keystrokes.
Pop open a scratch window with :new A fresh split will open with an empty buffer inside — type :new and hit Enter.

Next: Map W to stand in for <C-w>

Loading editor…