Automatically check for syntax or formatting errors.
Questions tagged [plugin-syntastic]
40 questions
7
votes
2 answers
How to make Syntastic include sourced files for Bash syntax (as `shellcheck -x` does)?
I have a Bash script which sources variables from another file. It passes the shellcheck -x, however Syntastic always complains:
Not following: sourced_file.sh was not specified as input (see shellcheck -x). [SC1091]
The script is:
#!/bin/bash
.…
techraf
- 227
- 2
- 9
4
votes
1 answer
Stop some messages from syntastic
I am coding in LaTeX, and syntastic seems to come up with messages that don't actually flag up errors. One in particular is possible unwanted space at "{" in this piece of code on lines 1 and 2.
\tikzset{
box/.style={
regular polygon,
…
Vent
- 75
- 1
- 6
3
votes
0 answers
Syntastic Header Checking with Clang Tidy
Wondering if it is possible to check C++ header files in vim with Syntastic running clang-tidy as checker?
:SyntasticCheck on .hpp files does nothing, though running the same command on the .cpp file that includes the header does check that header,…
A-n-t-h-o-n-y
- 131
- 3
2
votes
1 answer
SyntasticCheck C++ header
First, I'm not asking how to include includes in a syntastic check. I already have:
let g:syntastic_c_check_header = 1
And when I run :SyntasticCheck, or save, a .cpp file, it also checks relevant includes if they are in syntastic_c_include_dirs. …
goldilocks
- 801
- 6
- 23
2
votes
0 answers
How to make Vim close Syntastic buffer when closing main file?
Is there a way to make Vim close Syntastic buffer when closing the main file?
I.e. I'd like Syntastic to run automatically on file opening, and "disappear" when I choose the main file with either ZZ or :q!.
With my default configuration Syntastic…
techraf
- 227
- 2
- 9
2
votes
0 answers
How to configure Syntastic to process mixed Jinja/Html files correctly?
I've searched around for how to configure vim/syntastic to process mixed Jinja/Html files but haven't found the configuration steps with the right linter for Jinja/Html files. Does anyone know if there is a way to configure Syntastic to handle…
DC Slagel
- 266
- 4
- 11
2
votes
1 answer
What does this code snippet mean for Syntastic
I am using a .vimrc file cribbed from Github. I am trying to understand what each line is doing. I have installed Syntastic using Vundle. I have typed
:PluginInstall
and it has loaded. But it doesn't seem to work. Looking at the documentation…
Jay
- 23
- 4
1
vote
0 answers
Can you use Syntastic in Vim over a subset of code in a file?
I use Vim as my main text editor and use Syntastic to assist with linting. I am editing large legacy python files (some upwards of 50,000 lines) and would like to run SyntasticCheck over a range or a portion of the file instead of the entire file.…
blake
- 11
- 1
1
vote
0 answers
syntastic plugin files getting sourced twice
Many moons ago, I made the common newb mistake of tricking out vim with all kinds of plugins and plugin loaders without really knowing what I was doing. I'm trying to clean things up a little. I'm still a little baffled, though.
I just discovered…
StevieD
- 1,492
- 1
- 16
- 24