Good Starting Point for a .vimrc File

If you are a Linux user, you probably use vim a lot. The “vi” command typically maps to vim. One of the problems with the default setups for most Linux distros is that comments are dark blue and tabs are too large. This post shows a “.vimrc” file that you can simply add to your HOME directory, and then once you use vim, comments will appear in a turquoise (more readable) color and tabs are set to 3 (you can use whatever you like).

To create the .vimrc file simply login to your host and issue the following commands:

cd ~
vi .vimrc

The enter the following code to make the vim changes I describe above:

set encoding=utf-8
set ruler

” Remove distro changes ”
set nocompatible

” Display Line Numbers ”
set number

” Comments color ”
:color desert

” tabs, etc…”
set shiftwidth=3
set softtabstop=3
set expandtab

” Show line end and beginning ”
set listchars=eol:$,tab:>-,trail:.,nbsp:_,extends:+,precedes:+
set list


About Alvin Bunk
Hi, I'm a software developer at Taft College.

One Response to Good Starting Point for a .vimrc File

  1. Pingback: Apache & Symfony on RHEL | Alvin Bunk

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: