> De: "Jonathan del Strother" <[email protected]>
> À: "vim use" <[email protected]>
> Envoyé: Mardi 10 Septembre 2013 10:14:15
> Objet: Re: Advanced vimrc? question
> 
> On 10 September 2013 09:08, Gabor Urban < [email protected] >
> wrote:
> 
>> Hi
>> 
>> I have a problem which is not a top priority issue, but quite
>> annoying for me.
>> 
>> I use different indention depth with different types of sources. It
>> is rather time consuming to set it manually. Is there a possibility
>> to defined these values to file extensions?
> 
> Have you tried autocmds? eg
> autocmd FileType python setlocal shiftwidth=4
> autocmd FileType ruby setlocal shiftwidth=2

It's probably cleaner to add a vim file in your "indent" directory
(python.vim, ruby.vim, etc.) and let filetype detection load it automatically.

Best,
Paul

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to