From f80a6198b2256b0fcd0e7aa3f3b79fad15d91655 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 19 Nov 2011 12:36:03 +0100 Subject: [PATCH] vimrc: Make IndTxtObj script local. --- vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index e209796..04cae91 100644 --- a/vimrc +++ b/vimrc @@ -498,12 +498,12 @@ if has('eval') " Thanks to " http://vim.wikia.com/index.php?title=Indent_text_object&oldid=27126 " (visited on 2011-11-19). - onoremap ai :call IndTxtObj(0) - onoremap ii :call IndTxtObj(1) - vnoremap ai :call IndTxtObj(0)gv - vnoremap ii :call IndTxtObj(1)gv + onoremap ai :call IndTxtObj(0) + onoremap ii :call IndTxtObj(1) + vnoremap ai :call IndTxtObj(0)gv + vnoremap ii :call IndTxtObj(1)gv - function! IndTxtObj(inner) + function! s:IndTxtObj(inner) let curline = line(".") let lastline = line("$") let i = indent(line(".")) - &shiftwidth * (v:count1 - 1) -- 2.45.2