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
1
vote
0 answers

Is there a way to keep the Vim Syntastic error window closed until save?

I can use :lclose to close the Syntastic error window. This works when I have one file open at a time. Syntastic will re-check when I save my work. However, when I have multiple panes open, each time I switch back to a pane on which I called :lclose…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
1
vote
1 answer

Vim & Syntastic: Is it possible to switch Python version per project?

I know it's possible to choose which Python version to check e.g. in vim.rc as per this SO answer, but can I do it per project? Using e.g. virtualenv or a configuration file?
geckon
  • 8,316
  • 4
  • 35
  • 59
1
vote
0 answers

Vim: Airline + Syntastic bug

I am unable to get Airline to work properly with syntastic. I have a clean installation of Python (3.5.3), Vim (where there are only Syntastic and Airline installed via Vundle) and Flake8. When I open python code in Vim I get this message: Error…
Ray P.
  • 875
  • 1
  • 9
  • 24
1
vote
0 answers

Where is a Syntastic checker's regex located?

I'm trying to see how Syntastic's handlebars checker works. However, when I look at the checker, there are no regex entries looking for text like {{ or }} at all. It also doesn't appear that this file (copied below) is pulling in any other resources…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
1
vote
0 answers

VIM syntax error highlight with youcompleteme

I recently started using Youcompleteme vim plugin, and it is just perfect for me. The only thing I'm missing now from VIM is a syntax error highlight. I was using Syntastic, but as I read in other threads and on the YCM github page it is not…
Gábor Erdős
  • 3,599
  • 4
  • 24
  • 56
1
vote
2 answers

vim-go/synstastic Errors not automatically displaying on save

I noticed that when I save a file and I have a syntax error in my code, the error quickfix window does not automatically appear. I recently rebuilt my system and simply copied over my .vim/ directory along with the same .vimrcfile. I've done this…
John F.
  • 4,780
  • 5
  • 28
  • 40
1
vote
1 answer

Per project flake8 configuration

I'm using flake8 through syntastic in vim and I want a configuration file per project. On the syntastic documentation it states that: Depending on the checker, the filename of the corresponding configuration file can be specified by setting…
Marcus Johansson
  • 2,626
  • 2
  • 24
  • 44
1
vote
1 answer

Adding c++11 to Syntastic properly

I am aware of the question that already exists here about this but I could not investigate by commenting because I do not have enough reputation. So I use syntastic in vim and want to compile c++ stuff. My vimrc looks like this: 72 set…
1
vote
1 answer

Syntastic Not Passing Classpath to Javac

I'm working in Windows, trying to use gVIM with Syntastic for a Java project, and I can't seem to get the plugin to send the Java classpath to the compiler. Here's my _vimrc configuration: let g:syntastic_java_checkers=['java'] let…
djmoch
  • 700
  • 7
  • 11
1
vote
0 answers

Configure Tidy for Thymeleaf (Adding )

Question: How do I allow Tidy to accept this block without errors? Background: I'm writing html for a project that uses Thymeleaf and checking it with Tidy via…
MrQBerrt
  • 1,269
  • 2
  • 11
  • 20
1
vote
1 answer

How can I prevent syntastic from showing warning when file ignored?

I ignore some javascript files because it obviously can't follow javascript coding rule (yeoman generator). Off course, if I turned it on, syntastic will be mad at me. So, I ignore every files on templates directory. But, syntastic keep warns me.…
Mas Bagol
  • 4,377
  • 10
  • 44
  • 72
1
vote
1 answer

How to enable cpplint for c files in syntastic VIM

I am using cpplint with Syntastic on VIM, however I am not able to use cpplint for C files. I enabled cpplint for cpp files using the following line in .vimrc file: let g:syntastic_cpp_cpplint_exec = 'cpplint' I tried using the same for c: let…
user4089193
1
vote
1 answer

Vim doesn't recognize angular as HTML

I understand that vim would not know until told that some file maps to a particular type. Currently my VIM setting fails to recognize my .ng file as '.html' hence it reads it like a plain text. I want to know the global command to enable that. PS: I…
vivek
  • 2,807
  • 5
  • 31
  • 44
1
vote
1 answer

Vim & Syntastic: Sorting Errors before Warnings in the location list

I've found that some warnings can be affected by the presence of a syntax error. Remove the error and, hey presto, the warning disappears or changes. So as to not waste time dealing with fake warnings, I want to deal with the errors first, meaning…
Tom Hale
  • 40,825
  • 36
  • 187
  • 242
1
vote
1 answer

A few JSHint/Syntastic questions for Vim

I'm using Vim with Syntastic and JSHint, and there are a few bits of glitchy behavior that I'd like to fix. Whenever I modify the last character on a line of text and save (:w), I momentarily see "^M" flash after the text before (sometimes)…
Michael P.
  • 1,373
  • 3
  • 12
  • 33