[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

vim & tab & space



Hi,

This is not really debian topic, but since I got the idea from dpkg-scanlibs
thread from debian-devel two months ago.

In vim, what is the setting to use tab for indent and space for alignment? I
couldn't figure it out since vim always try to use tab instead of space.

e.g. when I use ts=4, sw=4 and has a line like this

[tab][tab]printf ("Hello World \

when I press enter vim will try to insert [tab] like

[tab][tab][tab][tab]here I can start typing again\n");


What is the setting to get rid of the third (and forth and ..) tab that is
not for indenting but for aligning?



regards,

Chanop



Reply to: