Alec Tica wrote:
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.
Hello,
Unfortunately I'm not seeing any scrolling. I used the following commands:
vim -u simple3.vimrc somefile
:so somefile.vim
(and some motion commands to put the cursor on the "1" in the rhs
window, and then to put the cursor back in the topleft window)
ctrl-w o
ctrl-w o
where simple3.vimrc is
set nocp
filetype plugin on
and somefile.vim holds your various commands above.
The last ZoomWin fix involved having ZoomWin bypass the winfixheight
setting (bypass == save, set to a safe setting, restore).
Please try the "simple3.vimrc" approach; perhaps you have a setting that
I'm not using.
Regards,
Chip Campbell
--
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