diff --git a/plugin/offside.vim b/plugin/offside.vim index 0644d5c..ac0d025 100644 --- a/plugin/offside.vim +++ b/plugin/offside.vim @@ -11,11 +11,11 @@ function! s:InnerOffside() " {{{ break endif endfor - return (l:start + 1) . 'GV' . (l:end - 1) . 'G' + execute 'normal! ' . (l:start + 1) . 'GV' . (l:end - 1) . 'G' endfunction " }}} -vnoremap InnerOffside InnerOffside() +vnoremap InnerOffside :call InnerOffside() if !hasmapto('InnerOffside') vmap io InnerOffside