Questions tagged [syntastic]

Syntastic is a syntax checking plugin for the Vim editor that runs files through external syntax checkers and displays any resulting errors to the user.

The Syntastic manual can be found here:

https://github.com/vim-syntastic/syntastic/blob/master/README.markdown

232 questions
127
votes
10 answers

VIM + Syntastic: how to disable the checker?

I'm using Syntastic which is enabled for my HTML files. Since I have a very big file with "validator w3" checkers enabled, GVIM or VIM became very slow while saving the file (:w). Is it possible to toggle syntastic off temporally just for the…
Yves Lange
  • 3,914
  • 3
  • 21
  • 33
54
votes
5 answers

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

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…
Carneiro
  • 3,479
  • 5
  • 24
  • 36
52
votes
8 answers

Switch Python Version for Vim & Syntastic

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?
mjb4
  • 989
  • 1
  • 9
  • 14
44
votes
3 answers

How to configure Syntastic with JSHint?

How to use the Syntastic Vim plugin with JSHint to validate JavaScript code? Environment: Ubuntu 11.04 VIM - Vi IMproved 7.3 What I have installed, following the solution at VIM + JSLint?: Vundle node.js Node Package Manager jshint,…
Fernando Correia
  • 21,803
  • 13
  • 83
  • 116
32
votes
4 answers

Make Syntastic close just the error window

I've got the (Mac)Vim Syntastic plugin installed via Janus. When I open the :Errors window to view the reason for syntax errors, it shrinks the file with the errors to one line and uses the rest of the real estate for the Errors window. Is there a…
Dave
  • 7,589
  • 12
  • 36
  • 42
30
votes
2 answers

How can I ignore angular directive lint errors with Vim and syntastic

It's confusing when Syntastic's lint tools keep warning me when I use proprietary html attributes, especially so when using Angular directives. This quite quickly drowns out actual errors in my html, decreases the value of the linter errors, and…
Dzung Nguyen
  • 9,152
  • 14
  • 65
  • 104
29
votes
4 answers

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

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…
feoh
  • 1,281
  • 1
  • 14
  • 19
29
votes
2 answers

Toggle Error Location panel in syntastic

How can I set a keyboard shortcut to toggle Syntastic Error Location List Panel in vim. :Errors - Shows Location Panel :lclose - Hides the Location Panel I'm very new to VimScript, if there would be a way to check visibility of the Location List…
system64
  • 909
  • 1
  • 11
  • 27
28
votes
2 answers

How to avoid "‘main’ is not defined in module ‘Main’" when using syntastic

I'm trying to write a module in Haskell. It does not have a main because it's not meant to be a stand-alone program. I just started using syntastic, and it is constantly reporting: The IO action ‘main’ is not defined in module ‘Main’ This is…
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
24
votes
2 answers

syntastic complaining about ES6 module syntax

I love syntastic for javascript but I am using the new ES6 module tranpiler and syntastic is not happy about these type of statements: import Typeahead from './lib/components/ember-typeahead'; Is there anyway that I can keep syntastic quiet about…
dagda1
  • 26,856
  • 59
  • 237
  • 450
21
votes
2 answers

Including header files recursively for syntastic

I'm working with a C++ project and trying to configure it to use syntastic. In my project I have a nested directory structure of header files (The actual nested structure is much worse, this is an example). --libs |---dir1 …
dev_nut
  • 2,476
  • 4
  • 29
  • 49
20
votes
2 answers

How do I fix this annoying syntastic rails error

I have the following code in rails <% @post.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • CodeCrack
    • 5,253
    • 11
    • 44
    • 72
    18
    votes
    2 answers

    Changing error highlight color used by syntastic

    How can the highlight color used by vim syntastic to mark the errors/warnings in code be changed. The error highlighting is enabled by default and can be changed using g:syntastic_enable_highlighting variable.
    system64
    • 909
    • 1
    • 11
    • 27
    17
    votes
    2 answers

    Can't get "Syntastic" vim plugin to work

    I've installed Syntastic plugin in vim. I can't get it to work. I've tried :SyntasticEnable but no luck. SyntasticEnable python in my vimrc doesn't work either (in fact, it doesn't even parse the command, an error is shown when I try to add it to my…
    17
    votes
    6 answers

    VIM Go Syntastic: main redeclared

    VIM Syntastic plugin works well with .go file. But sometimes I want to have several go files in the same folder, and each with the main() method, so that I can go run xxx each file(for presentation). This will cause the error when I save the second…
    user2647545
    • 309
    • 1
    • 3
    • 7
    1
    2 3
    15 16