2

I am using vi with

set ts=4
set number

configuration and I am tired of settings these each time I open the vi editor on command line. So I want to configure vi with a configuration file that I can embed the settings listed above however, I could not find the config file for vi in Ubuntu. What is the exact location of vi config file in Ubuntu or which way I can configure vi? Any ideas ?

Note: This question is only specific to vi, not vim.

3
  • I do not understand why this question earned a down vote? Question is not clear, not eligible, bad formatting, wonder exactly what is the reason so that I can change it to a better form? It's bad to see getting down vote with no comments, not any negative feedback within a comment. – Levent Divilioglu Feb 22 '17 at 22:43
  • 1
    let me ask you this: when you say vi do you mean that you installed a different implementation of vi other than what came by default ? – Sergiy Kolodyazhnyy Feb 22 '17 at 22:56
  • On Ubuntu, vi is some version of Vim. – muru Feb 23 '17 at 9:44
5

Open a new file in your home directory called .exrc, and put your configurations therein.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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