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!"

leeand00
  • 3,555
  • 5
  • 24
  • 40
  • 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 :-/ – Vivian De Smedt Mar 21 '24 at 22:07
  • 1
    Not sure if I should worship or hate you for that title. – Friedrich Mar 21 '24 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 Mar 21 '24 at 22:36
  • 3
    See :help cmdheight I believe – D. Ben Knoble Mar 21 '24 at 23:24
  • Do you still have something open in your question? How can we help you further? Otherwise maybe could you accept one of the answers using the v button next to the arrow voting buttons. It allow the question to rest :-) – Vivian De Smedt Mar 23 '24 at 15:29
  • @VivianDeSmedt Sorry I'm still reviewing it; now days it takes me some time to get back to it with all of my other duties and responsibilities. – leeand00 Mar 24 '24 at 13:44
  • 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 Mar 24 '24 at 13:51

1 Answers1

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)

Vivian De Smedt
  • 16,336
  • 3
  • 18
  • 37