On Dec 7, 12:24 pm, Samuel Ferencik <[email protected]> wrote: > When I do :tabe %, the % file gets edited in a new tab, but the current > cursor position in the original tab is lost. > > 1) edit a file in vim (single tab). > 2) 50% - position the cursor half-way down the file. > 3) :tabe % - open the same file in tab 2; in tab 2, the cursor is correctly > put half-way down the file > 4) gT - go back to tab 1 > > Actual result - the cursor on tab 1 is on line 1. > Expected (?) result - the cursor should still be half-way down the file. > > Is this a bug? >
Not sure if it's a bug, but you're basically doing the equivalent of :e % (but in a new tab). It sounds like you'd be better served with :tab split instead (which will probably have fewer side effects). -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
