3

Does pulling the ex line up like below serve any purpose?

Pulled the ex line up real high, it reads :echo "hike your pants up high!"

7
  • I would personally need more information about what you try to achieve, what did you try and what was the result of your try in order to help you :-/ Commented Mar 21 at 22:07
  • 1
    Not sure if I should worship or hate you for that title.
    – Friedrich
    Commented Mar 21 at 22:16
  • 1
    @VivianDeSmedt I took the bar at the very bottom of the screen where the the ex mode line appears and I dragged it towards the heavens. Similar to how dragging the underwear line towards the heavens creates a wedgie. And I wondered if this serves any useful purpose; like for instance, adding line breaks to your ex command.
    – leeand00
    Commented Mar 21 at 22:36
  • 3
    See :help cmdheight I believe
    – D. Ben Knoble
    Commented Mar 21 at 23:24
  • 1
    @VivianDeSmedt I am still trying to return to the project for which the Monitor Wedge applied. When I get back to it I'll take another look.
    – leeand00
    Commented Mar 24 at 13:51

1 Answer 1

1

It avoids the hit-enter-prompt when issuing a command whose output spans more lines than the cmdheight value.

Vim issues the hit-enter-prompt when the output of the command exceed the cmdheight value.

e.g.:

set cmdheight=1
echo "foo\nbar"

The echo command output spans on two lines but cmdheight is set to 1. Vim will show the two lines temporarily but will prompt the user with Press ENTER or type command to continue before restoring the command height to its cmdheight size.

e.g.:

set cmdheight=2
echo "foo\nbar"

In this example Vim doesn't prompt the user with the hit enter prompt since the output of the command fit within the cmdheight value (2 lines in this case)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.