[NCLUG] Looking at programming languages...

Chad Perrin perrin at apotheon.com
Tue Jan 22 13:20:40 MST 2008


On Mon, Jan 21, 2008 at 02:58:49PM -0700, Wirt wrote:
> Chad Perrin wrote:
> >On Sun, Jan 20, 2008 at 08:30:52PM -0700, Sean Reifschneider wrote:
> >  
> >>So, if it's important to you, you might be able to do that.  Maybe the
> >>easiest would be to have a macro that runs that just sets expandtab based
> >>on whether the current line has tabs in the beginning or not.
> >>    
> ><snip>
> >It strikes me as the logical way to handle things -- more so than any of
> >the options that are currently available.  Why must Vim assume that you
> >don't know what you want, and change things -- either changing tabs you
> >entered into spaces or changing spaces into tabs?
> >
> >Am I the only person who thinks this doesn't make much sense?
> >  
> 
> Well, it does make sense now that you bring it up. I'd never thought of 
> it before since everything I "publish" needs to either be pure spaces or 
> pure tabs. You might be able to steal some vimscript from the 
> 'DetectIndent' script 
> http://www.vim.org/scripts/script.php?script_id=1171 or find a script 
> snippet pre-made that does what you're looking for. Surely others have 
> wanted the same behaviour you prefer. Someone on irc #vim might have the 
> code at their fingertips, too. Hope there's a simple solution for you.

I feel much better now that someone has acknowledged that I'm not crazy
for my preferences in software behavior in this case.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
John Kenneth Galbraith: "If all else fails, immortality can always be
assured through spectacular error."



More information about the NCLUG mailing list