Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
different tabspace in different projects
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
allstars  
View profile  
 More options Nov 4, 10:04 pm
From: allstars <allstars....@gmail.com>
Date: Wed, 4 Nov 2009 19:04:15 -0800 (PST)
Local: Wed, Nov 4 2009 10:04 pm
Subject: different tabspace in different projects
hello

now i work with different projects developed by different teams

however they have different tabspace setting

one is 4 and the other is 8

below is my default settings

set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab

so i am wondering is there a faster way to switch tabspace back and
forth?

thanks


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Michael Fultz  
View profile  
 More options Nov 4, 10:33 pm
From: James Michael Fultz <croo...@gmail.com>
Date: Wed, 4 Nov 2009 22:33:09 -0500
Local: Wed, Nov 4 2009 10:33 pm
Subject: Re: different tabspace in different projects
* allstars <allstars....@gmail.com> [2009-11-04 19:04 -0800]:

> now i work with different projects developed by different teams
> however they have different tabspace setting
> one is 4 and the other is 8
> below is my default settings

> set tabstop=4
> set softtabstop=4
> set shiftwidth=4
> set expandtab

> so i am wondering is there a faster way to switch tabspace back and
> forth?

Could you set 'exrc' and create an appropriate vimrc in each project
directory?

You could also setup autocommands if your project files are in specific
directories.

au BufNewFile,BufRead /path/to/project1/*        setl ts=4 sts=4 sw=4
au BufNewFile,BufRead /path/to/project2/*        setl ts=8 sts=8 sw=8


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Wozniski  
View profile  
 More options Nov 9, 8:18 pm
From: Matt Wozniski <m...@drexel.edu>
Date: Mon, 9 Nov 2009 20:18:29 -0500
Local: Mon, Nov 9 2009 8:18 pm
Subject: Re: different tabspace in different projects

On Wed, Nov 4, 2009 at 10:33 PM, James Michael Fultz wrote:

> * allstars <allstars....@gmail.com> [2009-11-04 19:04 -0800]:
>> now i work with different projects developed by different teams
>> however they have different tabspace setting
...
>> so i am wondering is there a faster way to switch tabspace back and
>> forth?

> You could also setup autocommands if your project files are in specific
> directories.

> au BufNewFile,BufRead /path/to/project1/*        setl ts=4 sts=4 sw=4
> au BufNewFile,BufRead /path/to/project2/*        setl ts=8 sts=8 sw=8

Note that these don't have to be full paths; ie this would work:

  au BufNewFile,BufRead */project1/* setl ts=8 sts=4 sw=4
  au BufNewFile,BufRead */project2/* setl ts=8 sts=8 sw=8

~Matt


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google