Dealing with code indentation in Vim? -


i work on engineering team of 4 people, writing javascript while dabbling in ruby , python. so, team, share code time, , programmers do, each member of team has favorite level of indentation & related settings. 1 of 2 members of team use , love vim primary code editor. love team love my indentation, happens use 4-space tab characters. more context, here's use in .vimrc:

set ts = 4 sts = 4 sw = 4 expandtab " 4 space tabs 

with code-sharing , collaborative editing going on in team, main code files start appear mass of mixed tab & space mayhem, classic vim trick of selecting , pressing = smart indent doesn't have effect.

anyway, question this: in vim (macvim specifically) there better (more reliable) way of converting code file messy, mixed indentation preferred indentation? whether .vimrc setting or command enter while editing file, don't care.

thanks suggestions in advance!

use :retab.

having said that, suggest you, team, agree on , use indentation style when working collaboratively on project.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -