From 199c554c7075ff594778a775f9d82aa1e90ef416 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Fri, 4 Apr 2014 14:36:19 +0200 Subject: [PATCH] fix vimrc to actually only trigger where it should --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 91b4998b53f..24c70a2bc37 100644 --- a/.vimrc +++ b/.vimrc @@ -1,9 +1,10 @@ " source this file in your .vimrc to get the correct editor settings " for openQA +let s:loc = expand(':p:h') function! ProjectOpenQA() " execute only if this function is called for files in the " openQA directory - if stridx(expand('%:p'), expand(':p:h')) == 0 + if stridx(expand('%:p'), s:loc) == 0 set expandtab textwidth=0 shiftwidth=4 endif endfunction