let additionals = [ "core", "miaou", "rookie" ] for additional in additionals let s:vimrc_path = "/etc/vim/vimrc." . additional if filereadable(s:vimrc_path) execute "source " . expand(s:vimrc_path) endif endfor