New answers tagged

0 votes

How to get the right indent size in python lists?

With Vim 9.0 that behavior is now configurable. If you want to disable the indentation of open parenthesis/bracket you can set let g:pyindent_open_paren = shiftwidth()
1 vote

How to get the right indent size in python lists?

Found this section in the python indentation file (/usr/share/vim/vim82/indent/python.vim on my machine): " When inside parenthesis: If at the first line below the parenthesis add " two '...
  • 121
1 vote
Accepted

Place cursor on opening brace, press "=%", why does the closing brace get indented (in addition to desired indentation of lines between the braces)?

The automatic indentation of the file generated by the = command (e.g. =% or =G) depend on your file type and your file type implementation. I can reproduce your problem when the filetype of the text (...

Top 50 recent answers are included