Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4577642
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:22:28+00:00 2026-05-21T20:22:28+00:00

Several users in this epic question put the following in the .vimrc : Necesary

  • 0

Several users in this epic question put the following in the .vimrc:

" Necesary for lots of cool vim things
set nocompatible

But is it really necessary? From the docs:

'compatible' 'cp'
    boolean (default on, off when a |vimrc| or |gvimrc| file is found)

If set nocompatible is going in a .vimrc, that means that a .vimrc file exists, seemingly making it pointless.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:22:28+00:00Added an answer on May 21, 2026 at 8:22 pm

    If it is the system-wide vimrc, this option won’t be off. So, if you’re changing the system-wide vimrc and you want it, you need to set it.

    From the documentation section *compatible-default* (emphasis mine):

    When Vim starts, the ‘compatible’
    option is on. This will be used when
    Vim starts its initializations. But
    as soon as a user vimrc file is found,
    or a vimrc file in the current
    directory
    , or the “VIMINIT”
    environment variable is set, it will
    be set to ‘nocompatible’.

    Another difference is that explicitly setting ‘nocompatible’ overrules calling vim with the -C flag.

    In any other scenario, yes, setting ‘nocompatible’ in your vimrc is a noop.

    In the end I think it’s just a matter of “better safe than sorry”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm advising a friend who manages a SQL 2k5 box that has several users
I have several WPF apps, and I want users to be able to log
In my admin view I would like several sub directories for example: admin/users/list.aspx I
I have a query that might be executed by several users consecutively. I'm scared
I'm currently using SwiftMailer to send out emails to several users (up to 50).
The current app I'm building is a collaboration app that holds several users in
I'm creating a regular windows application that will be distributed to several users on
I want to create a small document management system. There are several users who
I have the following issue. I have deployed a smart client application to several
Several of our users have asked us to include data relative to their account

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.