If I wanted to have traditional indentation in vi / vim, I would enter these commands:
:set tabstop=4
:set shiftwidth=4
:set expandtab
It is tedious to type those commands every time I open a file. How do I permanently store those settings?
|
If I wanted to have traditional indentation in vi / vim, I would enter these commands:
It is tedious to type those commands every time I open a file. How do I permanently store those settings? | |||
|
feedback
|
|
Create a file in your home directory called
Ubuntu's Vim Howto has a few pointers to basic customisation, if you want to dig deeper there's the Vim Book and the FAQ as well. vi-improved.org also has a nice, big example of one person's .vimrc for you to rummage around in. | ||||
|
feedback
|
|
Store
or
In your | ||||
|
feedback
|