From 699944fcfe78dc326833796a8d133701fed04bb8 Mon Sep 17 00:00:00 2001 From: TKNGUE Date: Mon, 13 Jul 2015 08:29:52 +0900 Subject: [PATCH] Implmented linewise inner text object It is implmented by way in which to use movement command. --- plugin/textobj/fold.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/textobj/fold.vim b/plugin/textobj/fold.vim index 111b7b8..7b0b73d 100644 --- a/plugin/textobj/fold.vim +++ b/plugin/textobj/fold.vim @@ -67,12 +67,14 @@ endfunction function! s:select_i() call s:move_to_the_start_point() + normal! j let start_pos = getpos('.') for i in range(v:count1 - 1) call s:move_to_the_end_point('i', 0) normal! j endfor call s:move_to_the_end_point('i', 0) + normal! k let end_pos = getpos('.') return ['V', start_pos, end_pos]