" Switch off vi compatibility mode

set nocp

" Map the <F8> key to the "move up half a page" command for normal mode -
" - while the <F8> key doesn't exist its keycode is sent to vim for a
" short swipe up guesture. For insert mode make this key do nothing since
" in insert mode ^U would be interpreted as "undo"

map <F8> <C-U>
imap <F8> <Nop>

" Map the <F9> key to the "move down half a page" command for normal mode.
" For insert mode make this key do nothing since it doesn't d anything
" useful in this mode

map <F9> <C-D>
imap <F9> <Nop>
