Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shortcut of making vim windows/panels equally in height

Tags:

vim

I was reading the byte of vim. Here is a problem that I encountered.

I am using vim in macosx. (command line not GUI)

In the book, "Want to make the windows 'equal' in height again? press ctrl-w =" I have tried that, but it does not working. And, it made some sound (which I believe it indicates that there is an error)

In addition, when I have looked at the mac vim help page about window, I did found this command. I tried it again---still does not work in the command line mode, but it did works in GUI mode (MacVim)

Does anyone have any ideas to solve that? Thanks a lot!

like image 632
randomness2077 Avatar asked Feb 06 '11 01:02

randomness2077


People also ask

How do I make multiple windows in vim?

To split the vim screen horizontally, or open a new workspace at the bottom of the active selection, press Ctrl + w , followed by the letter 's' . In the example below, the left section has been split into two workspaces. To navigate to the bottom section hit Ctrl + w , followed by the letter 'j' .

How do I toggle between vim and windows?

Control + W followed by W to toggle between open windows and, Control + W followed by H / J / K / L to move to the left/bottom/top/right window accordingly, Control + W followed by Left / Down / Up / Right arrow to move to the left/bottom/top/right window accordingly.


1 Answers

You wouldn't happen to be pressing Ctrl-WCtrl-=, would you?

I tried Ctrl-W= in Vim in a Terminal, and it worked. Ctrl-WCtrl-= didn't work in the terminal, but it did in MacVim.

like image 83
Jander Avatar answered Sep 21 '22 23:09

Jander