14

In VsCode VIM (vanilla installation), how would you execute Ctrl + N? When inspecting the keyboard shortcut, it looks like this:

enter image description here

I tried the plain way in VIM by running :new, but it opened a new tab within the same editor instead of a whole new tab.

Ideally, I'm looking for a plain way to do this without having to re-map any keys. I'm a big proponent of using vanilla tooling so I can easily transfer machine without having to carry around my re-mappings.

Kellen Stuart
  • 7,775
  • 7
  • 59
  • 82

2 Answers2

14

In vim, I use :enew to start a brand new file.

D. Ben Knoble
  • 4,273
  • 1
  • 20
  • 38
8

You can try :e

Example

:e test.js

Or install extension like this : https://github.com/dkundel/vscode-new-file

Lieven Keersmaekers
  • 57,207
  • 13
  • 112
  • 146
pho mai
  • 184
  • 3