Great! Thanks a lot for this new version! I've made a few tests and it zooms in/out the correct window this time. However, there's a little annoying thing I've just noticed. To better describe what it is let's change the above script as following:
botright 25 split e bottom.win call append(0, "I'm the bottom window") botright vertical 25 split e right.win call append(0, "I'm the right window") call append(1, " 1st line indented") call append(2, " 2st line indented") call append(3, " 3st line indented") 1wincmd w setlocal winfixheight e content.win call append(0, "Here's the content. Bla bla bla") After you source this script go to the right window and put the cursor at the beginning of the 1st indented line (first non-blank character). Then go back to the content window and execute a zoom in/zoom out. Please notice how the right window is restored but horizontally scrolled so that the character where the cursor was last seen to be the first visible one in the window. I noticed this just with indented lines. -- You received this message from the "vim_use" 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
