VSCodeVim / VSCodeVim/Vim

`:vsp [file]` should create file if it doesn't exist

Open
#4,098 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/commandline kind/enhancement
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

First, thanks very much for creating this extension. The vim emulation is good enough that I've taken the plunge into vscode.

In regular vim and neovim, I rely a lot on :vsp to create a new file in the current working directory. That doesn't work in vscode-vim. Can it be made to work the way I've gotten accustomed to, namely:

:vscode <filename> creates a new vertical split to the right of the active pane and opens the file there, creating it if it doesn't exist. New files are created in the current working directory if an absolute or relative path is not specified.

EDIT: Should be vsp <filename> above, (doh!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The entry point named by the issue is the :vsp command; start by locating its TypeScript command handling and the existing vertical-split file-opening path. Done means :vsp opens a new vertical split to the right and creates the file when it does not exist, supporting relative and absolute paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.