New answers tagged indentation
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()
- 4,260
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 (...
- 4,260
Top 50 recent answers are included
Related Tags
indentation × 396vimrc × 45
formatting × 25
key-bindings × 18
tab-characters × 18
vimscript × 17
filetype-html × 17
filetype × 16
whitespace × 13
filetype-python × 11
neovim × 9
cut-copy-paste × 9
cursor-movement × 9
syntax-highlighting × 8
filetype-tex × 8
filetype-c++ × 8
filetype-c × 8
visual-mode × 7
wrapping × 7
comments × 6
filetype-javascript × 6
filetype-php × 6
insert-mode × 5
folding × 5
filetype-markdown × 5