I suppose this could be done with autocommands, one to record the current settings on BufLeave and another to apply the new settings on BufEnter to a new buffer (with checks to see if it should do so).
On 5/12/06, Gabriel B. <[EMAIL PROTECTED]> wrote:
On 5/11/06, mal content <[EMAIL PROTECTED]> wrote: > I wondered if there was a > way to mimic the style used in the current file. I'd love that also. I never cared, until i realised that everyone that program in python (the only language where tab vs space does matter) uses two spaces. I will die using tabs. It's very frustating to open a file, write a ton of hacks, and the first thing you see is a syntax error because you used tabs. i usualy reopen the file and replaces all tabs to two spaces not minding any tab in strings because i'm too pissed off to do that...
