Clarify vim.erl flow and extract create_test_file