syntastic

Switch Python Version for Vim & Syntastic

末鹿安然 提交于 2019-11-30 11:47:04
问题 Is it possible to change the python version used by syntastic for syntax checking? As the Issue https://github.com/scrooloose/syntastic/issues/385 indicates I could use virtual-env. But is it also possible just with syntastic or vim commands? 回答1: The below is no longer necessary, and might screw up if you're forced to work on a strictly python 2.x script. The best option is to leave the Syntastic defaults alone, and to use conda to manage separate environments for python 3 and 2 (each with

Syntastic for Vim: What are the required lines in ~/.vimrc? (PHP error checking)

ε祈祈猫儿з 提交于 2019-11-30 04:50:47
问题 I find the documents frustrating. What are the basic lines I need to add to my config file to get it working? 回答1: Technically, nothing. If you've extracted Syntastic into your .vim directory, try using the :SyntasticEnable command within Vim to enable it for the filetype of the currently open file. If you want to automatically turn it on for a given filetype, then you'll want to put a... SyntasticEnable [filetype] line in your .vimrc where [filetype] is the type of file you want to enable it

Switch Python Version for Vim & Syntastic

泄露秘密 提交于 2019-11-30 04:44:06
Is it possible to change the python version used by syntastic for syntax checking? As the Issue https://github.com/scrooloose/syntastic/issues/385 indicates I could use virtual-env. But is it also possible just with syntastic or vim commands? The below is no longer necessary, and might screw up if you're forced to work on a strictly python 2.x script. The best option is to leave the Syntastic defaults alone, and to use conda to manage separate environments for python 3 and 2 (each with their own version-specific installs of flake8, pyflakes, etc), and to switch to the appropriate environment

how to add c++11 support to syntastic vim plugin?

♀尐吖头ヾ 提交于 2019-11-29 19:42:41
I am using syntastic in my c++11 project. When I am editing in vim, and save (:w) the syntastic plugin gives me errors on every initializer list {} and for each loops which are clearly c++11 features that it's missing. I installed syntastic using pathogen. Here are two examples of the error I am getting on initializer lists and for each loops (both c++11 that compile fine): Turns out the C++ linter (syntax checker) of syntastic has many options that can be set on your .vimrc (unfortunate, I wish it was project specific, like the .clang_complete solution). To enable c++11 standards and use the

How to set up syntastic for vim?

*爱你&永不变心* 提交于 2019-11-29 19:14:07
问题 So I git cloned the repository to ~/.vim/bundle and had pathogen installed. I can be sure pathogen works fine since my other plugins in bundle are all working fine. After googling for a while, it seems that syntastic should work out of box for c code. I also checked that I have all the executables specified in syntastic/syntax_checkers/c/ . Here is a part of my .vimrc file: " syntastic let g:syntastic_auto_loc_list=1 let g:syntastic_disabled_filetypes=['html'] let g:syntastic_enable_signs=1