how to mark starting and ending strings with """ or ''' as comment currently as a workaround I added the following to the .vim/after/syntax/python.vim file syn region Comment start=/"""/ end=/"""/ syn region Comment start=/'''/ end=/'''/