[snip]
nmap <silent><PageDown> :exe "norm ".winheight(0)."j"<cr>
nmap <silent><PageUp>   :exe "norm ".winheight(0)."k"<cr>
nmap <silent><c-home>   :let x=col('.')<bar>1<bar>exe "norm ".x."<bar>"<cr>
nmap <silent><c-end>    :let x=col('.')<bar>$<bar>exe "norm ".x."<bar>"<cr>
[snip]

This works great.

I'm trying to map them also to visaul-mode but then I get the error:
"no range allowed"
Why is that?

I have:

vmap <silent><c-s-PageDown> :exe "norm ".winheight(0)."j"<cr>
vmap <silent><c-s-PageUp>   :exe "norm ".winheight(0)."k"<cr>
vmap <silent><c-s-home> :let x=col('.')<bar>1<bar>exe "norm ".x."<bar>"<cr> vmap <silent><c-s-end> :let x=col('.')<bar>$<bar>exe "norm ".x."<bar>"<cr>

Rgds,
Eric

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to