When I set tw
vim will auto wrap lines at tw
. When breaking that line vim usually places some spaces to keep the indentation of the previous line. Example
foo
bar<suppose that a wrap happens here>
tar
## <- this amount of space is added to keep the line idented
What are the options that control this behavior?
-- edit
To be more precise I was editing markdown and it indents lists this way
- foo bar tar <wrap happens!>
tick tack
While I expect
- foo bar tar <wrap happens!>
tick tack
I just don't want to tie the response to markdown so that I can apply it to other formats.
:set indentexpr?
say when you're editing a markdown file... (Wondering if you have a plug-in such as vim-polyglot or vim-markdown or similar installed that might have a particular indent setting for markdown...) In particular, I can't reproduce your indentation issue, maybe try withvim -u NONE -N
, then open a markdown file, see if you get the same behavior or not.