When I switch between eclipse editor tabs, Vim resets (jumps) to the first line of the text. Is there any workaround?
I'm also seeing this behavior. Has it been submitted as a bug?
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.
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.
When I switch between eclipse editor tabs, Vim resets (jumps) to the first line of the text. Is there any workaround?
I'm also seeing this behavior. Has it been submitted as a bug?
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.
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.