Skip to content Skip to main navigation Skip to footer

Linux:刚发现Vim的一个选项,很强大

无须任何插件

只要把这句写到.vimrc里,可以开启很多对不规范的Python语法的警告提示

let python_highlight_all = 1

包括tab和空格混用的情况

如果你觉得警告太多,也可以分别打开各个开关?

let python_no_builtin_highlight = 1let python_no_doctest_code_highlight = 1let python_no_doctest_highlight = 1let python_no_exception_highlight = 1let python_no_number_highlight = 1let python_space_error_highlight = 1

0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.