[NCLUG] Looking at programming languages...

Chad Perrin perrin at apotheon.com
Mon Jan 21 13:20:25 MST 2008


On Sun, Jan 20, 2008 at 08:30:52PM -0700, Sean Reifschneider wrote:
> 
> You would probably have to code this yourself in either vimscript or one of
> the plugin languages, so that opening a new line (either with "o" or ENTER
> at the end of an existing line) would literally copy the existing line.  I
> would expect that would be possible, I've definitely abused vim in ways
> that are well beyond just simple macros.
> 
> 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.

More work than I'd hoped, though I may have to do just that.

It seems ludicrous that this sort of behavior isn't already available.
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?

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Sen. Dick Durbin, D-IL, to an RIAA executive: "Are you headed to junior
high schools to round up the usual suspects?"



More information about the NCLUG mailing list