Sunday, June 29, 2014

Re: Tabs for indentation, spaces for alignment - possible in vanilla vim?

Hi @Paul,
thanks for the response and the function. I think 'smart tab' plugin achieves the same goal.
I was more thinking: is there a built-in vim-option for this.
But, it seems there isn't.

@ZyX, thanks for the clarification. I though this is relatively trivial problem, but now I get where the complexity lies.

On Saturday, June 28, 2014 11:33:39 PM UTC+2, Bruno Sutic wrote:
> Hi,
> I would like to use tabs for indentation and spaces for alignment.
> This "idea" is also described here: http://vim.wikia.com/wiki/Indent_with_tabs%2C_align_with_spaces#Smart_tabs
>
> To put it simple:
> - tabs should be used at the beginning of the line
> - spaces should be inserted when after any character in the line
>
> The article linked above proposes a 'smart tab' plugin to achieve this. Unfortunately, this plugin breaks snipmate plugin which also uses tab.
>
> So I wonder, is there a way (an option maybe) to achieve this without a plugin?
> I tried `:h 'smarttab'`, but that does something else.
>
> Thanks

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: