Hard wrap breaks developer's flow
I want to refer to a 2023 post
and it is simply that “hard wrap is broken and takes a long time to fix manually.”
My experience today was that when I was editing a long bash script, the hard wrap kicks in frequently. Because it is bash, you cannot just break lines like that, so I used keyboard shortcut to join lines. However the editor inserts “;” at the moment of joining lines.
Either the hard wrap or the line joining behavior breaks valid program, and it takes extremely long time to fix. If the developers used their own editor, this could have been avoided (since 2023). If the editor tries to sell a feature like this, it should be stable enough to NOT to introduce wrong code, limit the scope to free text, and give user the _global_ option to turn the smart ass off.
请先登录再写评论。
--update:
- did a reset settings and it turns out the editor itself is not to blame. Sorry for venting it here..
- the hard wrap seems to be inserted by IdeaVim
– it was because there is “set tw=78” in my ~/.vimrc; and IntelliJ by default would load it
- the “;” at joining lines seems to be inserted by BashSupport Pro
It was one of the recent changes in IdeaVim plug-in that caused some confusion. See https://youtrack.jetbrains.com/issue/IJPL-156611/Every-File-is-Forcibly-Soft-Wrapped-and-Cannot-be-Permanently-Disabled for more details.