Gentoo Archives: gentoo-user

From: Dan LaMotte <lamotte@××××××.edu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT] vim c syntax
Date: Thu, 13 Apr 2006 15:51:16
Message-Id: 443E7168.7090802@cs.umn.edu
1 really simple problem, but quite annoying.
2
3 % vim --version
4 VIM - Vi IMproved 6.4 (2005 Oct 15, compiled Jan 12 2006 12:36:23)
5
6 i am editing a C file and this is the problem i'm having:
7
8 in vim i have set ts=4 to make my tabs 4 spaces instead of 8. I
9 really dislike 8 spaces for tabs. anyways...
10
11 i type in vim
12
13 void main ( void )
14 {<enter>
15 int c;
16
17 The <enter> autoindent indents it 8 spaces ?!?
18 my tabstop is 4 though !
19
20 I want this
21
22 void main ( void )
23 {<enter>
24 int c;
25
26 If anyone knows how to fix this or if its like a bug or something...
27 that'd be great.
28
29 thanks.
30
31 --
32 # - dan lamotte - - lamotte {at} cs.umn.edu - #####
33 ## - systems staff - - uofm - - cs department - ####
34 ### fpr: 690F C162 4AE5 F85F FE94 88E5 D123 FBAC 0852 A280 ###
35
36 --
37 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] vim c syntax Kevin O'Gorman <kogorman@×××××.com>