On Monday, May 7, 2012 5:56:30 PM UTC-5, Filip RembiaĆkowski wrote:
>
> 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
>
Using your vimscript, I was not able to reproduce the issue. It always works for me on Windows XP, Vim 7.3.514. I tried editing a file, sourcing your script, and executing :Less; and I tried with "gvim -u NONE -R -S less.vim -c Less file.txt" which also worked. What system/full Vim version are you using? I did use zl and zh directly, I did not use your mappings. Note the script as given has 4 incomplete mappings: B and A need a right-hand-side, and q and Q need a <CR> to complete the mapping. In case google groups just ate it, here's what I see:
" 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
--
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
Tuesday, May 8, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment