Fixed typo and simplified quoting logic. Vim doesn't support multiline quotes, so I removed handling for that