Why does Vim ignore my modeline values?

后端 未结 6 1914
离开以前
离开以前 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:07

    The first step is always look in

    /usr/share/vim/vim74/debian.vim
    

    and comment out the nomodeline line.

    Kubuntu distributions consider it a security threat.
    (EG: libcal allows you to run an arbitrary program)

    This is only an issue if someone off system can run vim via a webpage. (don't trust user input.)

    It is also possible to do a ddos attack using spell checker. (don't trust user input.)

提交回复
热议问题