Kellen Stuart
Kellen Stuart

Reputation: 8933

VsCode VIM - How to open "New Untitled File"

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.

Upvotes: 17

Views: 8931

Answers (3)

D. Ben Knoble
D. Ben Knoble

Reputation: 4703

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

Upvotes: 19

Ros Sokcheanith
Ros Sokcheanith

Reputation: 11

In --NORMAL--
:e or :enew then press enter.
This will create new and open a new file tap.

Upvotes: 1

pho mai
pho mai

Reputation: 194

You can try :e

Example

:e test.js

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

Upvotes: 9

Related Questions