Find the answer to your Linux question:
Results 1 to 4 of 4
I'm new to using puTTY. I'm having a difficult time reading the dark blue that puTTY displays vi comments in. I've looked at the configuration screen and found the "colours" ...
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    6

    Question Can I chg comment colors in puTTY

    I'm new to using puTTY. I'm having a difficult time reading the dark blue that puTTY displays vi comments in. I've looked at the configuration screen and found the "colours" section. But nothing seems to allow me to change the color of my comments. Am I missing something?
    Thanks,
    Ken

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,838
    It is more of a vim thing than a putty thing, but anyway, try the colorscheme command, in your vim session.

    Type a colon to get your vi "command prompt" at the bottom of the window, then try something like:
    Code:
    colorscheme morning
    When you find one you like, you can put the command in your ~/.vimrc file. See here for more customization hints.

    You can see a list of your available color schemes typically in this dir:

    /usr/share/vim/vimXX/colors/

    though it is distro and vim version specific.

  3. #3
    Just Joined!
    Join Date
    Dec 2011
    Posts
    6
    Thank you very much. That was very helpful. If I might, one more quick question. I used UNIX years ago (8 or so) and when I did I was using vi. You mention vim. I've heard of it, how might I tell if I'm using vi or vim?

    Thanks,
    Ken

  4. #4
    Linux Guru
    Join Date
    May 2011
    Posts
    1,838
    Code:
    which vi
    or just open vi w/o passing any file as an argument to it and it should say what it is.

    if you are using syntax highlighting though, i'm pretty sure that is vim only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...