syntastic

How can I set the Python max allowed line length to 120 in Syntastic for Vim?

房东的猫 提交于 2020-01-01 07:36:26
问题 I'm using python-mode for Vim, I prefer for there to be 120 character lines rather than the stark 80 as defined in the PEP8 standard. In python-mode, this is easy. I just add the following to my ~/.vimrc: " Pylint configuration file let g:pymode_lint_config = '$HOME/.pylint.rc' let g:pymode_options_max_line_length=120 This works great, but then, I also wanted to use the superb Syntastic plugin for checking syntax of various other kinds (Chef recipes for foodcritic, for example.) Unfortunately

how to make syntastic with html tidy aware of ionic tags?

独自空忆成欢 提交于 2019-12-22 08:08:34
问题 I'm trying to edit an ionic application with vim that has syntastic enabled using html tidy. Unfortunately, I'm getting a load of errors. How can I make html tidy aware of ionic tags, or failing that make it ignore them so that I don't receive errors like this: www/index.html|26 col 5 error| <ion-pane> is not recognized! ... www/index.html|24 col 3 warning| <body> proprietary attribute "ng-app" 回答1: The solution for me was to set the following: let g:syntastic_html_tidy_ignore_errors=["<ion-"

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

独自空忆成欢 提交于 2019-12-18 10:05:42
问题 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): 回答1: Turns out the C++ linter (syntax checker) of syntastic has many options that can be set on your .vimrc (unfortunate

Perl Syntaxcheck: Add path

限于喜欢 提交于 2019-12-12 02:56:45
问题 Some perl modules i'm using are not in any directory in my $PATH, but in another. Normaler, I have to do use lib '/path/to/modules'; use ModuleOne; in order to use it. Or, if I do it on the terminal perl -I/path/to/modules .... But since we're using Perl-Modules in our Apache, the Apache does include the directory. So we do not have to write use lib... every time. Syntastic does not know this, and marks all use s of such modules as syntax-errors. Is there any way to tell syntastic to add

Syntastic and split view handling in Vim

元气小坏坏 提交于 2019-12-08 15:45:02
问题 Recently, I started using syntastic, as it eases up development quite a bit. The only thing that realy bothers me is how it deals with split views. I use the NERDtree plugin as well, and whenever I open another file in a vsplit view, the following happens: --------------------------------------------------------- | | | | |NERDTree| file | | | | | file | | | | | | |-------------------- | | | syntastic | | --------------------------------------------------------- | | | syntastic | | | ---------

How to setup Syntastic as python3 checker instead of python2

北战南征 提交于 2019-12-08 15:40:41
问题 In MacVim, I save following code as test.py print "Hello world! python2" , which is apparently wrong with python3, but after I run :w to save the file, there is no error message for it, Following is a part of ~/.vimrc, which is all about Syntastic: " Syntastic "" Recommended settings set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 ""

Syntastic close error window and original file window

丶灬走出姿态 提交于 2019-12-07 02:02:49
问题 I've installed Syntastic from GitHub and I'm trying to use Syntastic for checking perl syntax errors (and planning to use for Python in a short while). When I use ':quit' or ':q', only original file window closes. The error window does not close. Below is snip from my .vimrc file : execute pathogen#infect() set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_perl_checkers = ['perl'] let g:syntastic_python_checkers = ['pylint'] let g

How can I configure the omnisharp syntastic syntax checker to be more lenient?

瘦欲@ 提交于 2019-12-06 02:15:29
问题 I've followed this guide for setting up my vim for c#. I works beautifully, but I've got an annoyance: The syntastic checker is a bit too harsh on me. Specifically it advises me to change this line: var parser = new Parser(configuration, findReservations: true); with the message "Redundant argument name specification". Of course I COULD just do as it says, but I happen to like my redundant argument specification. The reader of my code might not remember what that boolean is for otherwise. So.

how to make syntastic with html tidy aware of ionic tags?

十年热恋 提交于 2019-12-05 18:19:45
I'm trying to edit an ionic application with vim that has syntastic enabled using html tidy. Unfortunately, I'm getting a load of errors. How can I make html tidy aware of ionic tags, or failing that make it ignore them so that I don't receive errors like this: www/index.html|26 col 5 error| <ion-pane> is not recognized! ... www/index.html|24 col 3 warning| <body> proprietary attribute "ng-app" The solution for me was to set the following: let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"] 来源: https://stackoverflow.com/questions