Why does Vim ignore my modeline values?

后端 未结 6 1912
离开以前
离开以前 2020-12-14 17:01

I\'m using a Python file with the following modeline at the end:

# vim: sts=4:ts=4:sw=4

If I start Vim with this file the modeline is ignor

6条回答
  •  爱一瞬间的悲伤
    2020-12-14 17:11

    I had a similar issue with my modeline not working. The answers in this thread helped me find my answer (which was adding set modeline to my ~/.vimrc)

    https://superuser.com/questions/323712/modeline-not-work-in-vim

    Also one thing that helped me debug this was to type :set in vim. This will tell you the different values that are currently set.

提交回复
热议问题