I am trying to remap <PageUp>
key to call this function:
function! PageUp()
let l:line = line('.')
if(l:line != 1)
if(l:line != winline())
:set syntax=off
<PageUp>
:set syntax=on
else
normal! 1G
endif
endif
endfunction
but gvim complains that I cannot do it.
So what is the proper way to use the keys in a function ?