Skip to main content
Bumped by Community user
Bumped by Community user
edited tags
Link
Friedrich
  • 3.3k
  • 1
  • 13
  • 26
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
Futarimiti
  • 211
  • 1
  • 7
added 2 characters in body
Source Link
Futarimiti
  • 211
  • 1
  • 7

Suppose I wrote this command:

command! -nargs=1 E echo ' -> <args>'

and when user feeds an argument,

:E abc

I intend to see the following effect as they hit Enter:

:E abc -> abc

Of course that's not happening, since vim flushes :E abc when printing -> abc, leaving the command-line beingshowing:

 -> abc

Is there an option to retain the command typed by user in the command-line, before finishing execution? Or are there alternative ways to achieve the same effect?

Suppose I wrote this command:

command! -nargs=1 E echo ' -> <args>'

and when user feeds an argument,

:E abc

I intend to see the following effect as they hit Enter:

:E abc -> abc

Of course that's not happening, since vim flushes :E abc when printing -> abc, leaving the command-line being:

 -> abc

Is there an option to retain the command typed by user in the command-line, before finishing execution? Or are there alternative ways to achieve the same effect?

Suppose I wrote this command:

command! -nargs=1 E echo ' -> <args>'

and when user feeds an argument,

:E abc

I intend to see the following effect as they hit Enter:

:E abc -> abc

Of course that's not happening, since vim flushes :E abc when printing -> abc, leaving the command-line showing:

 -> abc

Is there an option to retain the command typed by user in the command-line, before finishing execution? Or are there alternative ways to achieve the same effect?

Source Link
Futarimiti
  • 211
  • 1
  • 7
Loading