Menu

switching between eclipse editor tabs

General
marticak
2007-12-31
2013-06-03
  • marticak

    marticak - 2007-12-31

    When I switch between eclipse editor tabs, Vim resets (jumps) to the first line of the text. Is there any workaround?

     
    • nobodysbusiness

      nobodysbusiness - 2008-05-20

      I'm also seeing this behavior. Has it been submitted as a bug?

       
    • Brad Waite

      Brad Waite - 2008-09-03

      Yep, I'm seeing it, too.  I don't recall seeing this behavior until today, but I suppose I could have just missed it.

      I've tried both with my customized vimrc and without one.  Same results.

       
    • Brad Waite

      Brad Waite - 2008-11-25

      Add this to your vimrc:

      g`z"
      au FocusLost * if line(".") > 1 || col(".") > 1 | exe "normal mz" | endif
      au FocusGained * if line("'z") > 1 | exe "'z" | endif

      It isn't perfect, but it helps.  It sets the z marker when you lose focus, then goes to that marker when focus is gained.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.