VSCodeVim / VSCodeVim/Vim

Add an option for `tabe`, `split`, `vsplit`, etc. to create missing files instead of erroring out.

Open
#6,652 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
I tried searching through the open issues with a few queries, but didn't find any duplicates.

When I use ex commands like tabe, split, vsplit, and edit (I'm sure there's others too) with a filename argument for a file that doesn't exist, an error pops up.

Describe the solution you'd like
Instead, I'd like an option to reproduce the behavior of vim, which is to open an empty buffer, that when written to, writes that file to disk.

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

Trace the handlers for tabe, split, vsplit, and edit, then find any existing tests for filename arguments and missing files. Define the option's behavior for nonexistent paths: these commands should open an empty buffer, and writing it should create the requested file without changing existing-file behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.