Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Do not include G and gg in default mappings
Browse files Browse the repository at this point in the history
They are not scroll commands. I think it's better to leave them out of
default mappings, as the user may face unintended behaviour. The <Plug>
mappings can be used to create custom mappings if the user desires.
  • Loading branch information
subnut committed Nov 23, 2020
1 parent a230306 commit 94a4c39
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugin/smoothie.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ if has('nvim') || has('patch-8.2.1978')
silent! map <unique> <C-B> <Plug>(SmoothieBackwards)
silent! map <unique> <S-Up> <Plug>(SmoothieBackwards)
silent! map <unique> <PageUp> <Plug>(SmoothieBackwards)
silent! map <unique> gg <Plug>(Smoothie_gg)
silent! map <unique> G <Plug>(Smoothie_G)
endif
else
nnoremap <silent> <Plug>(SmoothieDownwards) :<C-U>call smoothie#downwards() <CR>
Expand All @@ -35,8 +33,6 @@ else
silent! nmap <unique> <C-B> <Plug>(SmoothieBackwards)
silent! nmap <unique> <S-Up> <Plug>(SmoothieBackwards)
silent! nmap <unique> <PageUp> <Plug>(SmoothieBackwards)
silent! nmap <unique> gg <Plug>(Smoothie_gg)
silent! nmap <unique> G <Plug>(Smoothie_G)
endif
endif

Expand Down

0 comments on commit 94a4c39

Please sign in to comment.