On Mon, May 7, 2012 at 9:08 AM, Ben Fritz <[email protected]> wrote:
> On Saturday, May 5, 2012 8:03:57 AM UTC-5, Filip Rembiałkowski wrote: > > Hello, > > > > Please advice what I should do - file a bug report? > > > > This looks like a bug to me, but I'm not sure. > > > > Thanks > > > > > > Go ahead. When you do, include detail on exactly what you tried, exactly > what you expected to happen, and exactly what happened. Also include why > you suspect the 'scrollbind' option in Vim and not the plugin. If you can > narrow it down to a very simple test case (two or three lines of vimscript > and some simple test data) that would be best, but a clear and concise > description of the problem should be sufficient. > > Before you report a bug on vim_dev or the google code issues list, take a > look at your 'scrollopt' setting, both before and after your reproduce your > unexpected behavior. If it does not contain 'hor', then horizontal > scrolling is not bound. See :help 'scrollopt', the default for this option > does *not* contain 'hor'. > Thank you Ben, Now I'm pretty sure the problem is in my scripts, not in Vim. But I can't find it :-( When I run "vim testfile" and invoke the function manually by :Less it works OK. When I invoke it via shell script "vimpager testfile" - it does not work. I will paste all here so you don't have to view my webpage: filip@srv:~$ more .vim/plugin/less.vim " :Less " will turn vim into friendly psql aligned results pager command! -nargs=0 Less call Less() fun! Less() set nocompatible set ignorecase set hlsearch set nowrap set scrollopt=hor set scrollbind set number execute 'above split' " resize upper window to one line; two lines are not needed because vim adds separating line execute 'resize 1' wincmd j execute 'norm! 2' " hide statusline in lower window set laststatus=0 " hide contents of upper statusline. " do not remove trailing space! set statusline=\ " scrolling instead of moving nmap C zL nmap B nmap D zH nmap A nmap <Space> <PageDown> " fast quit nmap q :qa nmap Q :qa endfun filip@srv:~$ type vimpager vimpager is /home/filip/bin/vimpager filip@srv:~$ more /home/filip/bin/vimpager #!/bin/bash what=- test "$@" && what="$@" ### execute Vim with this plugin ONLY exec vim -u NONE -R -S ~/.vim/plugin/less.vim -c Less $what vim -R testfile , then :Less - works OK vimpager testfile - not OK. first keystroke does not scroll upper window horizontally Thanks for help, Filip -- 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
