enabble smartindent

see :help smartindent
add ruby indent setting