Thursday, September 9, 2010

Re: "have tabs after the first non-blank inserted as spaces"

On Thu, September 9, 2010 11:36 am, livim wrote:
> I can't understand " It might be nice to have tabs after the first non-
> blank inserted as spaces if you do this though. "
> Who can give me some illustration?

imap <expr> <tab> getline('.')[0:col('.')-1]=~'^\s*$'?'<tab>' : repeat('
', &ts)

(one line, untested)

regards,
Christian

--
You received this message from the "vim_use" 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

No comments:

Post a Comment