diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-07 06:00:51 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-07 06:00:51 -0500 |
commit | c815ef6e32b925185339ddbd62a7205bb7a30287 (patch) | |
tree | d1853d16fc4446c3debd4c86f6cd03cdbefe51ae | |
parent | 4f23386c05bb6aeb1826570a61051382b27bda30 (diff) | |
download | vim-textobj-c815ef6e32b925185339ddbd62a7205bb7a30287.tar.gz vim-textobj-c815ef6e32b925185339ddbd62a7205bb7a30287.zip |
make sure spaces can traverse newlines
-rw-r--r-- | vim/plugin/textobj.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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! \<BS>" endif + let &whichwrap = whichwrap endfunction exe 'onoremap <silent>a'.a:char.' <Esc>:call <SID>textobj_'.s:text_object_number.'(0, v:operator, v:prevcount, "'.a:callback.'")<CR>' |