0

Windows Terminal 1.19.10573.0

When I ssh from Windows into a linux machine, I got colored output on the shell just fine. Directories and files are colored when using ls(1). Same with grep(1); results are marked in color. I got the same results when I use putty, so I think it's an issue on the (oldish) linux system (CentOS 7, no worries we are phasing them out.. :-)).

Just if I use vi (vim) (or nano(1) for that matter), there is no color at all. I barely see the cursor which led to some mistyping in the past. I tried the usual suspects in .vimrc and on the : command within vi, i.e. syntax on
set hlsearch set ruler set showmatch colorscheme

etc..

Beside that the features seem (?) to work.. there is no effect on colors. For example, hlsearch would not highlight the search results..

What can I do to at least make the cursor more prominently visible?

7
  • Are you invoking Vim on the command line as "vi" or "vim"? CentOS includes a basic version of Vim with no color support installed as /bin/vi, but an enhanced version can be installed that would be invoked as vim.
    – Heptite
    Commented Apr 6 at 16:44
  • Also, what's your $TERM environmental variable set to (and how is it set)?
    – Heptite
    Commented Apr 9 at 0:20
  • I invoke as "vi". "vim" is not found.
    – I grok it
    Commented Apr 9 at 15:03
  • I invoke as "vi". "vim" is not found. Within vi (vim), the version is reported as "VIM - Vi IMproved version 7.4.629 by Bram Moolenaar et al.". Does that support colors in CentOS 7? $TERM shows as "xterm-256color"
    – I grok it
    Commented Apr 9 at 15:16
  • Install vim-enhanced and invoke as 'vim".
    – Heptite
    Commented Apr 9 at 20:43

0

You must log in to answer this question.

Browse other questions tagged .