From 811367d7ada4ad3c6a880b98de333e9fd480e5ac Mon Sep 17 00:00:00 2001 From: Ingo Heimbach Date: Sun, 1 May 2016 09:43:38 +0200 Subject: [PATCH] c: The return value of a C function does not need to be on the same line as the function name --- autoload/textobj/function/c.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/textobj/function/c.vim b/autoload/textobj/function/c.vim index c1a7b30..7afcc73 100644 --- a/autoload/textobj/function/c.vim +++ b/autoload/textobj/function/c.vim @@ -34,6 +34,9 @@ function! s:select_a() normal! % call search(')', 'bc') normal! %0k + if substitute(getline('.'), '^\s*$', '', '') == '' + normal! j + endif let b = getpos('.') if 1 < e[1] - b[1] " is there some code?