Dang, I was hoping the average person wouldn't get the updated vimfiles unless they downloaded the cutting edge vim.
The easy solution is to use (&sw?&sw:&ts) in place of shiftwidth() and just recommend that people use shiftwidth() going forward. But if that's too ugly then yeah I can go through and add s:Shiftwidth() to things. On Monday, October 15, 2012 9:26:32 PM UTC-7, Bram Moolenaar wrote: > James wrote: > > > > > Fixed. What's the process for moving forward with this patch? > > > > Thanks. I'll check it out soon and probably include it. > > > > Problem is that when we update indent files to use shiftwidth() they > > won't work with older versions of Vim. Can you think of a simple way to > > use shiftwidth() only when available? Possibly by defining a > > s:Shiftwidth() function that uses has() and falls back to &sw. > > > > > > -- > > CART DRIVER: Bring out your dead! > > We follow the cart through a wretched, impoverished plague-ridden village. > > A few starved mongrels run about in the mud scavenging. In the open > > doorway of one house perhaps we jug glimpse a pair of legs dangling from > > the ceiling. In another doorway an OLD WOMAN is beating a cat against a > > wall rather like one does with a mat. The cart passes round a dead donkey > > or cow in the mud. And a MAN tied to a cart is being hammered to death by > > four NUNS with huge mallets. > > "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD > > > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ > > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ > > \\\ an exciting new programming language -- http://www.Zimbu.org /// > > \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" 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
