vi/vim滚动屏幕

VIM帮助文档如是说

Q_sc            Scrolling

CTRL-E          N  CTRL-E       window N lines downwards (default: 1)
CTRL-D          N  CTRL-D       window N lines Downwards (default: 1/2 window)
CTRL-F          N  CTRL-F       window N pages Forwards (downwards)
CTRL-Y          N  CTRL-Y       window N lines upwards (default: 1)
CTRL-U          N  CTRL-U       window N lines Upwards (default: 1/2 window)
CTRL-B          N  CTRL-B       window N pages Backwards (upwards)
z<CR>              z<CR> or zt  redraw, current line at top of window
z.                 z.    or zz  redraw, current line at center of window
z-                 z-    or zb  redraw, current line at bottom of window

说明

其实这里面最重要的就是最后三个,分别为使屏幕滚动以使当前行显示在最上面,显示在中间,显示在最下面。

posted @ 2017-10-22 15:51  枫竹梦  阅读(1632)  评论(0编辑  收藏  举报