Skip to content

Commit

Permalink
fix vimrc to actually only trigger where it should
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Apr 4, 2014
1 parent 8bd29fb commit 199c554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
" source this file in your .vimrc to get the correct editor settings
" for openQA
let s:loc = expand('<sfile>:p:h')
function! ProjectOpenQA()
" execute only if this function is called for files in the
" openQA directory
if stridx(expand('%:p'), expand('<sfile>:p:h')) == 0
if stridx(expand('%:p'), s:loc) == 0
set expandtab textwidth=0 shiftwidth=4
endif
endfunction
Expand Down

0 comments on commit 199c554

Please sign in to comment.