Is there a command to make a newline without the autoindent? In other words, I want o and O to normally autoindent, but is there another command that will not autoindent for just the duration of that command?
Alternatively (if there isn't a way to that exactly), what's a better workaround than just backspacing a ton after autoindenting many tabs too far.
Example
if some_check():
self.some_long_function_name(withlots, ofargs
andmaybe=keywordargs)
# ^ Indents to the caret
Pressing o on the andmaybe=keywordargs line leaves me way more indented than I want to be.
andmaybeis indented 8 chars (double shiftwidth). When I hito, the cursor is aligned withself. This even works when I indentandmybemanually to align it with the open paranthesis. BTW: Vim 8.1.1223 – Ralf Apr 30 '19 at 21:17oonandmaybe, it lines me up right under theainand. – Stephen C Apr 30 '19 at 21:25vim --clean file.py? – Ralf Apr 30 '19 at 21:36oatandmaybeafter making clean, it sets me under thesinself. So it's probably something weird in my vimrc then, right? – Stephen C May 01 '19 at 15:03autoindent– Rich May 02 '19 at 17:24