Apply different configurations to code and plain text

2011-04-11 Thread Gerardo Marset
Consider the following pseudo-code: if file_is_code: setlocal softtabstop=4 setlocal shiftwidth=4 setlocal expandtab else: setlocal softtabstop=8 setlocal shiftwidth=8 Is there a simple way to do this? -- You received this message from the vim_use maillist. Do not top-post!

Re: Apply different configurations to code and plain text

2011-04-11 Thread Gary Johnson
On 2011-04-11, Gerardo Marset wrote: Consider the following pseudo-code: if file_is_code: setlocal softtabstop=4 setlocal shiftwidth=4 setlocal expandtab else: setlocal softtabstop=8 setlocal shiftwidth=8 Is there a simple way to do this? You could put this in

Re: Apply different configurations to code and plain text

2011-04-11 Thread Gerardo Marset
El 11/04/11 20:33, Gary Johnson escribió: On 2011-04-11, Gerardo Marset wrote: Consider the following pseudo-code: if file_is_code: setlocal softtabstop=4 setlocal shiftwidth=4 setlocal expandtab else: setlocal softtabstop=8 setlocal shiftwidth=8 Is there a simple way