As the title says, I seek high quality text editor for POSIX shell scripting.
Requirements:
Most important to me is syntax highlighting:
I admire the fast start-up of Sublime Text, but it does not recognize variables inside strings:
[ -f "${backup_file}" ] && echo "File ${backup_file} exists, exiting." && exit 1
Like in this test case, where it simply fails to highlight variables out of the box at least.
Cross-platform, because I work primarily on Windows 10 (running scripts in Cygwin), but also on Linux Mint 19.
Although preferred, it does not have to be open-source.
I am also willing to pay for it, so it does not have to be free.
Must be with graphical user interface, so a CLI editor is a no go.
Does not have to be fast, just get me the syntax highlighting of variables and other shell script related things out of the box.
Reference script has been posted inside my own answer on Code Review.
Bottom line
The accepted solution is gVim Easy, because after minor adjustments to my HiDPI display it became the fastest and probably the most powerful editor I have ever seen. I intend to use it in the Easy mode, though, in order to experience normal editing, but later on, I might use the real power of it.
Follow-up
Though, I was astonished by how fast gVim Easy could start up, after two days spent over _vimrc
, and setting things up to my expectations, I am a little tired of it, and am not sure it's worth the trouble for me, because I am no heavy editor, I just write shell scripts, and after several hours spent in Visual Studio Code, feeling like at home, I am prepared to say my decision was rather hasty and I am truly contemplating over switching to Visual Studio Code from Sublime Text instead of to gVim for it works out of the box almost perfectly. So far I haven't even made any change to the settings, which I would have to do with gVim Easy whenever re-installing and / or moving to another computer. I am not 100% sure I won't ever use the vim
family, but as for this question, for future readers, Visual Studio Code should be recommended, and thus I am accepting that solution.