https://blog.csdn.net/justheretobe/article/details/50708951
问题一:
安装 spf13 之后, 编写或查看python脚本时,在win7的gvim中,一些单词总有红色波浪线标识。在linux的vim中,某些单词有色块,如下:
win7 + gvim7.4:
linux:
解决办法:
:set nospell
或者在 ~/.vimrc.local 中添加:
autocmd VimEnter * set nospell
如果需要对某些文件类型使能spell check,参考:
http://stackoverflow.com/questions/10963536/why-does-vim-highlight-some-words
和
https://github.com/spf13/spf13-vim/issues/67
set nospell 之后
问题二:
使用pymode的pep8检查,默认单行长度不超过80个字符。如果能在编写代码时能看到80个字符长度是多少会很有利规范编写。
解决办法:
“============show colorbar in vim for python========
“pymode max length ,default is 80
“let g:pymode_options_max_line_length=80
autocmd FileType python set colorcolumn=80
参考:
http://stackoverflow.com/questions/23345210/vim-change-max-line-from-80-in-pymode
set colorcolumn 之后:
---------------------
作者:justheretobe
来源:CSDN
原文:https://blog.csdn.net/justheretobe/article/details/50708951
版权声明:本文为博主原创文章,转载请附上博文链接!