VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.57k stars 1.3k forks source link

:%! truncates the file #9065

Open smolin opened 1 month ago

smolin commented 1 month ago

Type: Bug

Start with a large file, like /usr/share/dict/words. Check the file length in lines, 235976 in my case.

In the VS Code editor with vim plugin active, enter :%!cat which should have no effect on the buffer.

Notice that the file length is now much shorter - 100826 lines in my case.

Extension version: 1.27.3 VS Code version: Code 1.90.0 (Universal) (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:34:44.157Z) OS version: Darwin x64 23.5.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 2| |Memory (System)|16.00GB (0.01GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|