From 8dfc4b903a7c429d8e8ff3cba555c3317ab7a3ba Mon Sep 17 00:00:00 2001 From: Dag Odenhall Date: Tue, 22 May 2012 17:19:45 +0200 Subject: [PATCH] this works better --- plugin/offside.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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