How to get the cursor position line at the mid of the windows in vim?
Suppose the cursor position line at bottom or top.
What's the vim command to get the cursor position line at the mid of the windows in vim? |
M to get to the middle line, then gm to get to the middle column?
|
Quote:
Suppose the cursor is at the line number 35. 35 is the last line number of that window/page. Now i want to get this line number 35 at the middle of that window/page. And there will be same number of lines above and bottom the line number 35. I know about H,M,L. |
cola ... I am curious if you have man and / or access to the internet to search?
I only ask as you have asked several questions recently related to vim and as far as I can tell most would have been easily answered by one of the two methods I mention above. Just a thought |
zz does what you want
|
Thanks.
|
All times are GMT -5. The time now is 02:25 AM. |