aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-28 01:31:24 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-28 01:31:24 -0500
commit40ebc166a3da6e46125356f85c03ab54d3307e03 (patch)
tree480fa8f6d2a5afcd484a6287090cfd320a7a4353
parenta1bc3fec0a6a76a2d5cf729161f74944f44d4bf7 (diff)
downloadvim-textobj-40ebc166a3da6e46125356f85c03ab54d3307e03.tar.gz
vim-textobj-40ebc166a3da6e46125356f85c03ab54d3307e03.zip
don't really need to save and restore the cursor here, since all the text object stuff will reposition it anyway
-rw-r--r--vimrc4
1 files changed, 0 insertions, 4 deletions
diff --git a/vimrc b/vimrc
index fb8b700..e9e10a4 100644
--- a/vimrc
+++ b/vimrc
@@ -369,15 +369,11 @@ call Textobj('/', 'Textobj_regex')
" }}}
" f for folds {{{
function Textobj_fold(inner, count)
- let pos = getpos('.')
-
exe 'normal! '.a:count.'[z'
let startline = line('.') + a:inner
normal! ]z
let endline = line('.') - a:inner
- call setpos('.', pos)
-
return [startline, 1, endline, strlen(getline(endline))]
endfunction
call Textobj('f', 'Textobj_fold')