Is it possible to customise the shell invocation when using a command such as :.write !
or equalprg
?
#13298
Unanswered
matteocoder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to use Powershell as my vim shell, and I want to better understand how to better integrate the two.
When using the
:.write !echo
command, the line processed by the shell is as follows:As far as I understand,
Get-Content
reads the content of a file, and sends an array through the pipeline, with each line of text being an element of the array.Get-Content
, however, has a-Raw
flag, which sends the entire content as a single element.Since I would like to integrate a Powershell script formatter using
equalprg
, I would likeGet-Content
to send the entire script as a single block of text, rather than an array of lines which are then processed one by one by the remaining pipeline.In this case, is there a way to add the
-Raw
flag toGet-Content
, or to customise the shell invocation entirely from within vim?Beta Was this translation helpful? Give feedback.
All reactions