cga2000 wrote:
Just a confirmation:
I am under the impression that with vim running in an xterm, you are
limited to using whatever fonts have been defined as X resources and
using a mouse Ctrl-<left-click> if you want to change to a different
font on the fly. Naturally the font change would affect the entire
display.
Likewise, I have seen some rather elegant color schemes where some :hi
groups are highlighted not only by using a different colour but also
switching to italic - charon.vim, eg. Coding "cterm=italic" in the .vim
file does not appear to cause a vim syntax error but after taking a
quick look at the xterm doc it seems that using an italicized font as a
highlighting enhancement - as least in my setup - is not possible when
running vim in non-gui mode.
Am I correct assuming the above or am I missing anything?
Thanks,
cga
Console Vim must work in an xterm just as well as in a non-X "hardware
display" on /dev/tty. Most terminals can set parts of the text to bold
or reverse-video. B&W terminals can usually also do underlining; color
terminals can of course set colours (usually 8/8, 8/16 or 16/16 for
bg/fg respectively). Italicizing is rarer; changing the font face is
usually either not possible, or possible only for the whole screen (and,
unlike gvim, console vim has no control over it). IIUC, the start/stop
sequences are defined in the termcap/terminfo and in the t_xx options
shown by ":set termcap". You may change those settings at your own risk:
if what Vim sends is not understood by the display interface, you'll get
gibberish on your screen.
See
:help :set
:help :set-termcap
:help term.txt
Best regards,
Tony.