The previous '<CR>' mapping was causing too many false starts of the
incremental selection, especially because of the way I have my keyboard
configured, where the Ctrl and Enter keys are "shared".
This additional check is needed because when nvim is started as `nvim -u
NORC`, my configuration that sets `termguicolors` is not called but
colorizer IS installed and requires `termguicolors` to be set. If it is
not set, the setup() function prints an error.
Most terminals use the VT520 DECSCUSR escape sequences for setting the
cursor shape, documented at:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.txt
iTerm2, however, uses a set of proprietary escape codes, documented at:
https://iterm2.com/documentation-escape-codes.html
The issue I had was that tmux recognizes the VT520 DECSCUSR codes and
knows how to translate them itself to iTerm2. But tmux does not accept
the iTerm2 codes as input, so deciding to use these proprietary codes
only based on the presence of `$ITERM_SESSION_ID` did not work when
running tmux. The solution is to revert to the VT520 codes when running
inside of tmux (even inside iTerm2) and let it translate to iTerm2.
iTerm2 is still acting up under some circumstances and the special
symbols that I was using to delimit the current window name get messed
up. This is also an opportunity to make the configuration a bit more
visually minimal :).
1. Show the filename in italics if file is modified.
2. Put the plus sign on the right of the filename and make it stand out.
3. The symbols I was using were not rendering well on macOS and don't
really have the time to debug this now. Just use simpler line.