Monday, July 25, 2022

break long ex command into multiple lines

experts:
is there a way to break very long ex command into multiple line?

for example I'm using Asyncrun https://github.com/skywind3000/asyncrun.vim plugin to execute a long command:

:Asyncrun python3 myapp.py -a 123 -b 123 -c 123 -d 123 ....

In my notes I wanted to record this but with line breaks.
ideally, when I later need to run this command in vim, I can just copy and paste them into vim. but it does not work.

I've tried put \ in front of new lines, and at end of new lines, nothing works.

:Asyncrun
\ python3 myapp.py
\ -a 123 -b 123 -c 123 -d 123 ....

:Asyncrun \
 python3 myapp.py \
 -a 123 -b 123 -c 123 -d 123 ....

how do I break a long ex command into multiple lines?
Is this even supported?

Regards
ping

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAHyaFsXqARB1k2xn-MzFejGcWJWUiDw%3DoQTz8L9vdhLKzemZew%40mail.gmail.com.

No comments: