Re: Smart use of Tab

2006-11-01 Thread Benji Fisher
On Tue, Oct 31, 2006 at 03:57:18PM +, A. S. Budden wrote: [snip] The key problem here is that the autoindenting is, rather understandably, using tabs to achieve the indent, but if another developer works on the code with ts set to something different, the comment on the third line won't

Re: Smart use of Tab

2006-11-01 Thread A. S. Budden
On 01/11/06, Benji Fisher [EMAIL PROTECTED] wrote: On Tue, Oct 31, 2006 at 03:57:18PM +, A. S. Budden wrote: [snip] The key problem here is that the autoindenting is, rather understandably, using tabs to achieve the indent, but if another developer works on the code with ts set to

Re: Smart use of Tab

2006-10-31 Thread A. S. Budden
On 27/10/06, Benji Fisher [EMAIL PROTECTED] wrote: On Fri, Oct 27, 2006 at 04:46:02PM +0100, A. S. Budden wrote: Dear all, I've recently started using the CleverTab function below, modified from the bottom of the comments page on tip 102. This is brilliant from my point of view: - tab

Re: Smart use of Tab

2006-10-31 Thread A. S. Budden
On 27/10/06, Benji Fisher [EMAIL PROTECTED] wrote: For another approach, pretty much what you suggested, look at the VarTab() function in foo.vim, my file of example vim functions: http://www.vim.org/script.php?script_id=72 This function returns a calculated number of spaces, and it should

Re: Smart use of Tab

2006-10-31 Thread Yakov Lerner
On 10/31/06, A. S. Budden [EMAIL PROTECTED] wrote: On 27/10/06, Benji Fisher [EMAIL PROTECTED] wrote: On Fri, Oct 27, 2006 at 04:46:02PM +0100, A. S. Budden wrote: Dear all, I've recently started using the CleverTab function below, modified from the bottom of the comments page on tip

Re: Smart use of Tab

2006-10-31 Thread A. S. Budden
On 31/10/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 10/31/06, A. S. Budden [EMAIL PROTECTED] wrote: On 27/10/06, Benji Fisher [EMAIL PROTECTED] wrote: On Fri, Oct 27, 2006 at 04:46:02PM +0100, A. S. Budden wrote: Dear all, I've recently started using the CleverTab function below,

Smart use of Tab

2006-10-27 Thread A. S. Budden
Dear all, I've recently started using the CleverTab function below, modified from the bottom of the comments page on tip 102. This is brilliant from my point of view: - tab produces tabs at the start of the line for indenting*; - tab shows the longest unique option in the omnicomplete list

Re: Smart use of Tab

2006-10-27 Thread Benji Fisher
On Fri, Oct 27, 2006 at 04:46:02PM +0100, A. S. Budden wrote: Dear all, I've recently started using the CleverTab function below, modified from the bottom of the comments page on tip 102. This is brilliant from my point of view: - tab produces tabs at the start of the line for