On 07/06/09 19:54, StarWing wrote: > > when open wrap, the long lines will be break in short one in screen. > so, you can use gj and gk to jump between screen lines. > > but, you can't jump-one-screen-line when scroll screen. e.g. when you > edit a file: [...] > how can I did it? (and C-E and C-Y did the same thing)?
You can't. In Vim, all "file-lines" onscreen, especially including the one with the cursor, and with the possible exception of the bottom file-line in the window, MUST be displayed in their entirety, with the single exception that if the current file-line (the one with the cursor) is larger than the window, it may overflow it on both top and bottom depending on where the cursor is in the line. If the top line in the window is longer than the 'columns' setting, and you have 'wrap' set, then if you scroll (e.g. by Ctrl-E, or by moving the cursor downwards), that top line will disappear completely in one step, and the next (file-)line will become the new top line. If you absolutely want to scroll by single screen lines, you can set 'nowrap' (which is the default), but then long lines may overflow the screen left and/or right, which is probably not what you want. Best regards, Tony. -- Really heard in court in the U.S.A.: Q.: How did your first marriage end? A.: By death. Q.: And by whose death did it end? A.: You guess. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
