From 379462d356ae5c97178b9617e42d76ca50c79863 Mon Sep 17 00:00:00 2001 From: Ruben Laguna Date: Wed, 15 Oct 2014 23:07:54 +0200 Subject: [PATCH] Change 'ir' to ignore first and last line of the fold --- 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]