Create a file under the cursor in Vim
Fresh3 days ago
Mar 15, 20263773 viewsConfidence Score0%
0%
Problem
I have a list of files How do I create a file with file2.ext name if my cursor is inside file2.ext. Kind of like only for creating new files (this is a hypothetical situation, just thought might be helpful someday).
Error Output
file1.ext file2.ext ...
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Create a file under the cursor in Vim
Low Risk
The first thing that comes to my mind is to use the command with the filename under the cursor as an argument: But there is a pure Vim solution that is portable across platforms. The built-in function writes the contents of a list to a file, line by…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix