Find the answer to your Linux question:
Results 1 to 3 of 3
Is there a way to change the vimrc script file used by vim editor permanently ? When I run 'vim --version', it displays (among other things): system vimrc file: "$VIM/vimrc" ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    5

    Changing the order of vimrc script for vim


    Is there a way to change the vimrc script file used by vim editor permanently ? When I run 'vim --version', it displays (among other things):

    system vimrc file: "$VIM/vimrc"
    user vimrc file: "$HOME/.vimrc"
    user exrc file: "$HOME/.exrc"
    system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"

    I wanted to know if I could change this order ? Where is the above order of script/config file stored in the os ?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Jul 2008
    Posts
    93
    Quote Originally Posted by radiatejava View Post
    Is there a way to change the vimrc script file used by vim editor permanently ? When I run 'vim --version', it displays (among other things):

    system vimrc file: "$VIM/vimrc"
    user vimrc file: "$HOME/.vimrc"
    user exrc file: "$HOME/.exrc"
    system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"

    I wanted to know if I could change this order ? Where is the above order of script/config file stored in the os ?

    Thanks
    The order of script execution is compiled into to the vim editor.

    What is it that you want to accomplish by changing the order? Any script execution supersedes previous scripts.

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Posts
    5
    Thanks for the response. If it is compile time configuration, I cannot do much. I need to frequently work on new VMs and make this ~/.vimrc file.

  4. $spacer_open
    $spacer_close

Posting Permissions

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