From 40ebc166a3da6e46125356f85c03ab54d3307e03 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 28 Apr 2008 01:31:24 -0500 Subject: don't really need to save and restore the cursor here, since all the text object stuff will reposition it anyway --- vimrc | 4 ---- 1 file changed, 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') -- cgit v1.2.3-54-g00ecf