Skip to content

Commit

Permalink
Merge #3
Browse files Browse the repository at this point in the history
  • Loading branch information
psliwka committed Dec 1, 2019
2 parents d82f923 + 0b83428 commit fbddce8
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions plugin/smoothie.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
nnoremap <silent> <C-D> :<C-U>call smoothie#downwards() <CR>
nnoremap <silent> <C-U> :<C-U>call smoothie#upwards() <CR>
nnoremap <silent> <C-F> :<C-U>call smoothie#forwards() <CR>
nnoremap <silent> <S-Down> :<C-U>call smoothie#forwards() <CR>
nnoremap <silent> <PageDown> :<C-U>call smoothie#forwards() <CR>
nnoremap <silent> <C-B> :<C-U>call smoothie#backwards() <CR>
nnoremap <silent> <S-Up> :<C-U>call smoothie#backwards() <CR>
nnoremap <silent> <PageUp> :<C-U>call smoothie#backwards() <CR>
nnoremap <silent> <Plug>(SmoothieDownwards) :<C-U>call smoothie#downwards() <CR>
nnoremap <silent> <Plug>(SmoothieUpwards) :<C-U>call smoothie#upwards() <CR>
nnoremap <silent> <Plug>(SmoothieForwards) :<C-U>call smoothie#forwards() <CR>
nnoremap <silent> <Plug>(SmoothieBackwards) :<C-U>call smoothie#backwards() <CR>
if !get(g:, 'smoothie_no_default_mappings', v:false)
silent! nmap <unique> <C-D> <Plug>(SmoothieDownwards)
silent! nmap <unique> <C-U> <Plug>(SmoothieUpwards)
silent! nmap <unique> <C-F> <Plug>(SmoothieForwards)
silent! nmap <unique> <S-Down> <Plug>(SmoothieForwards)
silent! nmap <unique> <PageDown> <Plug>(SmoothieForwards)
silent! nmap <unique> <C-B> <Plug>(SmoothieBackwards)
silent! nmap <unique> <S-Up> <Plug>(SmoothieBackwards)
silent! nmap <unique> <PageUp> <Plug>(SmoothieBackwards)
endif

0 comments on commit fbddce8

Please sign in to comment.