Saturday, April 17, 2021

How allow TAB at begining of a line, but expand it to spaces?

Hi,

If I use the above at the modeline, it will expand all TABs in a line. But I just want to keep the TAB at the beginning of a line. Could anybody show me how to modify the line to get this behavior? Thanks.

vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=-1 fileencoding=utf-8:

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/444bff07-7b41-4cd1-9cc8-707364707353n%40googlegroups.com.

No comments: