This can be short and simple or incredible complex, and will probably get bigger and more complex as your knowlege grows.
Take a look at an example file by starting vim and typing:
:r $VIMRUNTIME/vimrc_example.vimAlso try:
:help starting :help vimrc-introI particularly recommend "starting" as it discusses how vim starts up, and the place of the .vimrc file in editor startup -- putting things in context.
You can set options via:
set number set nonumber set shiftwidth=4 set number?"number" is a boolean option, so you now know how to set it true or false. Putting a question mark at the end is how you ask what the value is. Other options (like shiftwidth) have numeric values.
You can put comments into vimscript by starting with a double quote mark.
Tom's vim pages / tom@mmto.org