You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if I missed this somewhere but here goes:
I'd like to be able to open a buffer of a not yet created file in the filetree.
Currently I can only create an empty file and then open it after.
This however ignores autocommands, which would prefill a file with a skeleton when opening a new file with the BufNewFile trigger.
Is it possible to have the behavior of the add command (with a prompt to enter a name), but only opening a buffer?
The closest discussion/issue I could find was this one, but this one wants to create the file first and open it in a buffer immediately after creation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Not sure if I missed this somewhere but here goes:
I'd like to be able to open a buffer of a not yet created file in the filetree.
Currently I can only create an empty file and then open it after.
This however ignores autocommands, which would prefill a file with a skeleton when opening a new file with the BufNewFile trigger.
Is it possible to have the behavior of the
add
command (with a prompt to enter a name), but only opening a buffer?The closest discussion/issue I could find was this one, but this one wants to create the file first and open it in a buffer immediately after creation.
Beta Was this translation helpful? Give feedback.
All reactions