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

6 views
Skip to first unread message

Peng Yu

unread,
Apr 17, 2021, 11:00:46 AM4/17/21
to vim_use
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:
Reply all
Reply to author
Forward
0 new messages