Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on orion color syntax in vi in the Shared & Semi-Dedicated forum
I have an account on Carbon and one on Orion. On carbon when I use vi to edit files I have color syntax highlighting, but ...

  1. #1
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161

    Question orion color syntax in vi

    I have an account on Carbon and one on Orion. On carbon when I use vi to edit files I have color syntax highlighting, but I don't seem to have that when I use vi on Orion. How can I get this on Orion. I copied the same .vimrc file into my Orion home directory that I have in my home directory on Carbon, but that doesn't seem to help. Even tried "syntax on" from within vi and nothing.

    Randy

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    Maybe try "vim" instead of "vi"?

  3. #3
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    vim does not work, gives me a command not found error.

  4. #4
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,438
    Do you need to enter an explicit path to vim due to jailshell? Is that what you do for vi, or do you just enter 'vi do-this-command -modswitch' and let the OS interpolate the /bin or /sbin directories?

  5. #5
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    I just enter "vi" then the command (vi <filename>).

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    On silicon (as is the case with most Linux servers) the command vi is just an alias to the program "vim." vim on silicon is located at /usr/bin/vim. I suppose that there is a chance that one of your servers has the "real" vi, or more likely the two servers have different versions of vim installed. I'm not a vi power user, so I can't help you more than that.

    Try running the commands "which vi" and "which vim" and see what you get.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  7. #7
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    "which vi" returns /bin/vi
    "which vim" returns "not found"
    but if I type "vi" by itself so I get the initial vi screen is says it is vim

    VIM on orion is actually a newer version than on carbon and carbon highlights all my stuff fine. I guess it's not really a big deal but things are much easier to read when highlighted.

    Randy

  8. #8
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    opened a ticket asking support about it and they took care of it.

    Randy

Bookmarks

Posting Permissions

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