vim center line where the cursor (reprint)

Original link: https://blog.csdn.net/liuna915/article/details/6543674?utm_source=blogxgwz8

Once it was found that using Emacs Ctrl-L is particularly useful, see the cursor click on the below mentioned put the line to the middle of the screen, so would like to find similar functionality in vim, consider also that there is, so to find, but there are three -

zz: the current line placed in the middle of the screen (not reproduced ...) 
ZT: the current line at the top of the screen (not pig ~) 
ZB: bottom friends ~

There is a movement position of the cursor line, that is, for example, I cursor line 10, I would not move the cursor, but shifted upwardly row, ctrl-e it and then downwardly, Ctrl-Y ~
 - -------------- 
Disclaimer: this article is CSDN blogger "liuna915 'original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/liuna915/article/details/6543674

Guess you like

Origin blog.csdn.net/qq_31433709/article/details/100097848