For some reason, in vim, whenever there is a line of ruby ββcode with a function that includes parentheses, for example: string = gets() without a semicolon, the next line is indented. When the semicolon, it works fine. Any ideas as to why this is happening and how to fix it? Also, since it is likely to be requested, here is my ~/.vimrc
string = gets()
~/.vimrc
You probably don't want set cindent for ruby ββfiles.
set cindent
Use au FileType ruby setlocal nocindent
au FileType ruby setlocal nocindent
At the top (before any other au), for other languages ββto work correctly, you need
instead of the corresponding lines.