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

This is a discussion on root and vim in the VPS & Dedicated forum
When I use Vi under my root account it does not have syntax highlighting or any of the settings under /etc/vimrc. All the regular user ...

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

    root and vim

    When I use Vi under my root account it does not have syntax highlighting or any of the settings under /etc/vimrc. All the regular user accounts everything works fine.

    How can I have my root user see the settings in /etc/vimrc?
    btw, running CentOS.
    Randy

  2. #2
    JPC Dream Team
    Join Date
    Mar 2009
    Posts
    925
    Hi,

    Can you please submit a ticket with the server login credentials so we can have a check?
    Anoop
    Support Department
    JaguarPC.com

  3. #3
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    Thanks tech support! Although I feel like a moron, that was too easy. I always typed 'vi' instead of 'vim' to edit files. So I needed to create alias:
    Code:
    alias vi='vim'
    and that's it! Syntax highlighting and everything works now.

    Randy

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I personally can't stand the syntax highlighting of vim. I find the colors it uses are often much to hard to read. I spend my days working in vi on Solaris boxes at work, then I run vi (aliased to vim) on my VPS and go nuts. Of course I haven't bothered to change that so...

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

  5. #5
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    I had the colors changed on my shared server. I think I have the config files saved somewhere hope I can find them because I don't like the default colors either. I like the highlighting just don't like it's default scheme.

  6. #6
    Registered User
    Join Date
    Aug 2009
    Posts
    13
    I prefer to use nano or pico for text editing.

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
  •