Saturday, June 28, 2014

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

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: