aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index b11c3d8..b0fd941 100644
--- a/vimrc
+++ b/vimrc
@@ -304,7 +304,13 @@ function Textobj(char, callback)
endfor
let objlength -= 1
endif
+ if endcol == 0
+ normal! J
+ endif
call cursor(startline, startcol)
+ if startcol > strlen(getline(startline))
+ normal! J
+ endif
exe 'normal! '.a:operator.objlength.' '
if a:operator == 'c'