You are not logged in.

#1 2009-01-28 05:23:03

Olnex
Member
Registered: 2008-04-10
Posts: 89

Vi/Vim Indentation

Hello, I installed vim, and use command "vi", I don't like the default indentation but I don't know how to change it.
I want to use spaces instead of tab, and 4 spaces instead of 8-spaces tab, also I don't want indentation.
How to I configure it?

Offline

#2 2009-01-28 05:28:00

M177ER
Member
Registered: 2008-06-15
Posts: 148

Re: Vi/Vim Indentation

wiki

I am pretty sure it is

set tabstop=4

Offline

#3 2009-01-28 06:23:56

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Vi/Vim Indentation

set expandtab           " insert spaces instead of tab chars
set tabstop=4           " a n-space tab width

You can find some stuff here:

http://bbs.archlinux.org/viewtopic.php?id=62748

Offline

Board footer

Powered by FluxBB