Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I change default settings of Vim editor such as setting auto indent, setting Tab space to 4 and changing text colors? Also how to set vim as the default code editor?

share|improve this question
    
I suggest you ask the second question as a separate question. Better yet, Google for its answer first. –  zwets Mar 5 '13 at 12:47

2 Answers 2

up vote 2 down vote accepted

Edit ~/.vimrc and put these in it:

set autoindent
set tabstop=4
colorscheme default

Note: type :colorscheme and hit Tab in order to find available colorsschemes installed for your Vim .

share|improve this answer

Put these settings in ~/.vimrc. For more information, type

:help vimrc-intro

from within vim.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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