Skip to content

Commit

Permalink
Add some scrolling aliases to call flick
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
baco-ceg authored and baco committed Jul 16, 2020
1 parent e20aeaf commit 023cf93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/comfortable_motion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ if !exists('g:comfortable_motion_no_default_key_mappings') ||
nnoremap <silent> <C-f> :call comfortable_motion#flick(200)<CR>
nnoremap <silent> <C-b> :call comfortable_motion#flick(-200)<CR>
nnoremap <silent> <PageDown> :call comfortable_motion#flick(200)<CR>
nnoremap <silent> <PageUp> :call comfortable_motion#flick(-200)<CR>
inoremap <silent> <PageDown> <C-O>:call comfortable_motion#flick(200)<CR>
inoremap <silent> <PageUp> <C-O>:call comfortable_motion#flick(-200)<CR>
nnoremap <silent> <S-Down> :call comfortable_motion#flick(200)<CR>
nnoremap <silent> <S-Up> :call comfortable_motion#flick(-200)<CR>
inoremap <silent> <S-Down> <C-O>:call comfortable_motion#flick(200)<CR>
inoremap <silent> <S-Up> <C-O>:call comfortable_motion#flick(-200)<CR>
endif


Expand Down

0 comments on commit 023cf93

Please sign in to comment.