Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:r doesn't work #9513

Open
ArmanTahsinAdib opened this issue Mar 4, 2025 · 0 comments
Open

:r doesn't work #9513

ArmanTahsinAdib opened this issue Mar 4, 2025 · 0 comments

Comments

@ArmanTahsinAdib
Copy link

ArmanTahsinAdib commented Mar 4, 2025

:r file or :r !command doesn't work in VSCodeVim

Describe the bug

The :r file and :r !command commands do not work as expected in the VSCodeVim extension.
In Vim:

  • :r file should read the contents of a file into the current buffer.
  • :r !command should execute a shell command and insert the output into the buffer.

However, in the VSCodeVim extension, these commands either fail or do not produce the expected result.

To Reproduce

Steps to reproduce the behavior:

  1. Open VSCode with the VSCodeVim extension enabled.
  2. Open a new file or an existing one.
  3. Try running :r filename (where filename is a valid file path).
  4. Try running :r !ls (or another valid shell command).
  5. Observe that the expected output does not appear in the buffer.

Expected behavior

  • :r file should read the contents of the file and insert them into the current buffer.
  • :r !command should execute the command and insert the output into the buffer.

Screenshots

N/A

Environment :

  • Extension (VSCodeVim) version: 1.29.0
  • VSCode version: 1.97.2
  • OS: Arch Linux (Kernel: 6.14.0-rc5-1-mainline)

Additional context

This is an essential feature in Vim for inserting file contents and shell command outputs. It would be great to have it working in VSCodeVim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant