mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.38k stars 8.74k forks source link

set nocompatible doesn't do anything #817

Open ericandrewlewis opened 6 years ago

ericandrewlewis commented 6 years ago

In .vimrc:

" Make Vim more useful
set nocompatible

The compatible option defaults to off when a .vimrc is found, so I believe this line does nothing.

Thanks for these dotfiles, I've been using them for years and they're great 😄

lacymorrow commented 6 years ago

If a user has previously edited the .vimrc or another library has changed those settings, this ensures the mode remains enabled. I understand the redundancy concern and maybe the edge cases are irrelevant.