Am 12.03.2010 09:13, schrieb Jean Johner:
I don't see these problems.
My first guess is that all of the above can be explained by trailing
spaces on the right hand side of some mappings, probably caused by
copy&paste.  Try to remove all trailing spaces:
      :%s/\s\+$//

Hi Andy,
That was it.
Now it works but could be improved because the cursor on top line
(after PadeDown), say line 46, is positioned at the first non-blank
column of line 45. This is because CTRL-E keeps the column number.

Best regards
Jean Johner

I see ...
The following changes should fix it (when 'startofline' is enabled,
execute underscore to go the start of the line):


*** -   Sat Mar 13 19:34:23 2010
--- C610.vim    Sat Mar 13 19:32:38 2010
***************
*** 7,16 ****
    " {insert}    currently not used
    let cnt = v:count>=1 ? v:count : ""
if a:dir > 0
!     let scrollcmd = cnt."\<C-f>".cnt."\<C-e>"
    else
!     let scrollcmd = cnt."\<C-b>".cnt."\<C-y>"
    endif
let savelz = &lz
--- 7,17 ----
    " {insert}    currently not used
    let cnt = v:count>=1 ? v:count : ""
+ let solfix = &startofline ? "_" : ""
    if a:dir > 0
!     let scrollcmd = cnt."\<C-f>".cnt."\<C-e>".solfix
    else
!     let scrollcmd = cnt."\<C-b>".cnt."\<C-y>".solfix
    endif
let savelz = &lz

--
Andy

--
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

Raspunde prin e-mail lui