Skip to content

Commit 8389964

Browse files
committed
Add some scrolling aliases to call flick
Some aliases of C-f and C-b for scrolling one page down and up are: PageDown and PageUp, Shifh-Down and Shift-Up on either normal or insert mode. This fix adds comfortable_motion for those aliases.
1 parent e20aeaf commit 8389964

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugin/comfortable_motion.vim

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ if !exists('g:comfortable_motion_no_default_key_mappings') ||
2222
2323
nnoremap <silent> <C-f> :call comfortable_motion#flick(200)<CR>
2424
nnoremap <silent> <C-b> :call comfortable_motion#flick(-200)<CR>
25+
26+
nnoremap <silent> <PageDown> :call comfortable_motion#flick(200)<CR>
27+
nnoremap <silent> <PageUp> :call comfortable_motion#flick(-200)<CR>
28+
inoremap <silent> <PageDown> <C-O>:call comfortable_motion#flick(200)<CR>
29+
inoremap <silent> <PageUp> <C-O>:call comfortable_motion#flick(-200)<CR>
30+
31+
nnoremap <silent> <S-Down> :call comfortable_motion#flick(200)<CR>
32+
nnoremap <silent> <S-Up> :call comfortable_motion#flick(-200)<CR>
33+
inoremap <silent> <S-Down> <C-O>:call comfortable_motion#flick(200)<CR>
34+
inoremap <silent> <S-Up> <C-O>:call comfortable_motion#flick(-200)<CR>
2535
endif
2636

2737

0 commit comments

Comments
 (0)