I have changed tab settings in VI with set tabstop=4. But when I restart VI, the settings are restored. How can I save the settings?

link|improve this question

68% accept rate
feedback

migrated from stackoverflow.com Nov 7 '11 at 14:06

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

Create/edit a file named .exrc in your /home/ directory and write your settings like this

:set tabstop=4

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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