break long ex command into multiple lines

9 views
Skip to first unread message

ping song

unread,
Jul 25, 2022, 12:48:56 PM7/25/22
to vim-use Mailingliste
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

Reply all
Reply to author
Forward
0 new messages