From c815ef6e32b925185339ddbd62a7205bb7a30287 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Wed, 7 May 2008 06:00:51 -0500 Subject: make sure spaces can traverse newlines --- vim/plugin/textobj.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/plugin/textobj.vim b/vim/plugin/textobj.vim index e45df9b..0cda57a 100644 --- a/vim/plugin/textobj.vim +++ b/vim/plugin/textobj.vim @@ -25,6 +25,8 @@ function Textobj(char, callback) endfor let objlength -= 1 endif + let whichwrap = &whichwrap + set whichwrap+=s if startcol > strlen(getline(startline)) let startcol = 1 let startline += 1 @@ -39,6 +41,7 @@ function Textobj(char, callback) elseif a:operator == 'v' exe "normal! \" endif + let &whichwrap = whichwrap endfunction exe 'onoremap a'.a:char.' :call textobj_'.s:text_object_number.'(0, v:operator, v:prevcount, "'.a:callback.'")' -- cgit v1.2.3