if !has('float') || !has('timers') let g:smoothie_enabled = 0 echohl WarningMsg echom 'vim-smoothie needs +timers and +float' echohl None finish endif if has('nvim') || has('patch-8.2.1978') noremap (SmoothieDownwards) call smoothie#downwards() noremap (SmoothieUpwards) call smoothie#upwards() noremap (SmoothieForwards) call smoothie#forwards() noremap (SmoothieBackwards) call smoothie#backwards() noremap (Smoothie_gg) call smoothie#cursor_movement('gg') noremap (Smoothie_G) call smoothie#cursor_movement('G') if !get(g:, 'smoothie_no_default_mappings', v:false) silent! map (SmoothieDownwards) silent! map (SmoothieUpwards) silent! map (SmoothieForwards) silent! map (SmoothieForwards) silent! map (SmoothieForwards) silent! map (SmoothieBackwards) silent! map (SmoothieBackwards) silent! map (SmoothieBackwards) if get(g:, 'smoothie_experimental_mappings', v:false) silent! map gg (Smoothie_gg) silent! map G (Smoothie_G) endif endif else nnoremap (SmoothieDownwards) :call smoothie#downwards() nnoremap (SmoothieUpwards) :call smoothie#upwards() nnoremap (SmoothieForwards) :call smoothie#forwards() nnoremap (SmoothieBackwards) :call smoothie#backwards() nnoremap (Smoothie_gg) :call smoothie#cursor_movement('gg') nnoremap (Smoothie_G) :call smoothie#cursor_movement('G') if !get(g:, 'smoothie_no_default_mappings', v:false) silent! nmap (SmoothieDownwards) silent! nmap (SmoothieUpwards) silent! nmap (SmoothieForwards) silent! nmap (SmoothieForwards) silent! nmap (SmoothieForwards) silent! nmap (SmoothieBackwards) silent! nmap (SmoothieBackwards) silent! nmap (SmoothieBackwards) if get(g:, 'smoothie_experimental_mappings', v:false) silent! nmap gg (Smoothie_gg) silent! nmap G (Smoothie_G) endif endif endif " vim: et ts=2