Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

From the vimtutor LESSON 7.3: COMPLETION

          ** Command line completion with CTRL-D and <TAB> **
  1. Make sure Vim is not in compatible mode: :set nocp

  2. Look what files exist in the directory: :!ls or :!dir

  3. Type the start of a command: :e

  4. Press CTRL-D and Vim will show a list of commands that start with "e".

What does compatibility mode in vim mean and why does command completetion doesn't worl in that mode ?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Compatible mode means compatibility to venerable old vi. When you :set compatible, all the enhancements and improvements of Vi Improved are turned off. It's not recommended to do this, but some systems provide (mostly for backwards compatibility with old Unix systems) a vi command that is implemented with Vim in compatible mode.

Note that once a personal initialization file ~/.vimrc exists, Vim automatically turns on 'nocompatible' mode, so this usually is nothing to worry about. For the full story, :help 'compatible' has all the details.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.