Fixed indentation issues, the problem was vim was automatically indenting using tabs instead of spaces when using the >> command for indenting blocks