Loading ...
Sorry, an error occurred while loading the content.

Re: keeping the cursor in the middle of window

Expand Messages
  • thomas
    ... Thanks a lot! This command does exactly what I wanted. ++ Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message from the
    Message 1 of 3 , Apr 27, 2009
    • 0 Attachment
      2009/4/27 Jerry Dai <daijianzhen@...>:
      > 2009/4/15 thomas <thomas.bsd@...>:
      >> I use the "scrolloff=a_high_number" trick to have the the cursor in
      >> the middle of the window.  Of course, when there is not enough lines,
      >> the cursor is on the top of the window, and this does not annoy me.
      >> But here is my question: is it possible to keep the cursor in the
      >> middle of the window when I am at the end of a file?
      >
      > Try :auto CursorMoved * normal zz

      Thanks a lot! This command does exactly what I wanted.

      ++
      Thomas

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.