Why config file of vi is not named .virc but .exrc?

3

1

Just from curiosity I want to know why .exrc is not named .virc? Is there reason for it?

ironsand

Posted 2013-07-12T01:49:33.973

Reputation: 1 757

Question was closed 2013-07-17T08:47:35.960

Answers

2

From http://pubs.opengroup.org/onlinepubs/7908799/xcu/vi.html

The vi (visual) utility is a screen-oriented text editor. The user can switch back and forth between vi and the line editor ex and execute ex commands from within vi.

So, mainly due to its historical relationship to ex. If you use a modern vi variant like vim, then you'd be using .vimrc.

jjlin

Posted 2013-07-12T01:49:33.973

Reputation: 12 964

So there was/is a ex editor. Thanks jjlin! – ironsand – 2013-07-12T05:01:09.813