Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions autoload/comfortable_motion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,9 @@ function! comfortable_motion#flick(impulse)
let s:comfortable_motion_state.impulse += a:impulse
endfunction

function! comfortable_motion#stop()
let s:comfortable_motion_state.velocity = 0.0
endfunction

let &cpo = s:save_cpo
unlet s:save_cpo
1 change: 1 addition & 0 deletions plugin/comfortable_motion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if !exists('g:comfortable_motion_no_default_key_mappings') ||
nnoremap <silent> <C-b> :call comfortable_motion#flick(-200)<CR>
endif

autocmd TermEnter * call comfortable_motion#stop()

let &cpo = s:save_cpo
unlet s:save_cpo