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
2
votes
1 answer

disable whitespace checks for C++ files in vim syntastic

The place I work has mixed-indents all over. Unfortunately, that is the style the company has decided on (yuck.) I would rather not see the "mixed-indent" errors produced by syntastic in vim, but I don't want to turn it off altogether. Is there a…
Cory
  • 151
  • 12
2
votes
2 answers

enable checking for scons in syntastic

I want to activate checking for scons files in vim + syntastic. My .vimrc includes: au BufNewFile,BufRead SCons* set filetype=scons let g:syntastic_scons_checkers = ['flake8'] Opening a scons file and :SyntasticInfo Syntastic version:…
Knut
  • 431
  • 4
  • 14
2
votes
5 answers

Fixing SyntasticCheck bootstrap error. Vim Syntastic plugin

I am using Syntastic VIM plug in All my bootstrap stuff is set up and works it's just I keep getting this error in app/assets/stylesheets/application.css.scss || File to import not found or unreadable: bootstrap-sprockets. Load path: ... on line…
CodeCrack
  • 5,253
  • 11
  • 44
  • 72
2
votes
1 answer

vim +Syntastic mapping keys to :SyntasticChecking doesn't work

I tried mapping the key to :SyntasticCheck of Syntastic vim in .vimrc nmap sc :SyntasticCheck but it doesn't work. Also, when I type this command :SyntasticCheck into vim command it doesn't work, but when I save file with :w it works.…
user3071121
  • 605
  • 2
  • 8
  • 12
2
votes
1 answer

Syntastic not working in gVim windows7

I have installed syntastic on gVim using pathogen. I can access syntastic documentation and stuff. But syntastic can't check my files for error. I have setup the path for php even then it wont check Here is the screenshot of errors-…
abhishek_M
  • 1,110
  • 11
  • 19
2
votes
1 answer

Syntastic is not working for c++

I recently installed Syntastic via pathogen according to this guide https://github.com/scrooloose/syntastic#installpathogen. However, Syntastic is not working for c++. It does however work for c. I am not sure what the reason is, when I open .cpp…
mrQWERTY
  • 4,039
  • 13
  • 43
  • 91
2
votes
2 answers

Checking PHP with vim-Syntastic on Windows

I installed Syntastic with pathogen for Vim. I'm coding PHP on Windows, when I type :SynasticInfo, I have no checkers available. I can run php -l index.php on my terminal but when I run :!php -l % in Vim, another terminal opened with this error…
pal_crystal
  • 73
  • 1
  • 1
  • 7
2
votes
2 answers

How to prevent syntastic from creating a directory for every vim instance?

When using the syntastic plugin with vim, I see a new /tmp/vXXXXXXX directory every time I open a new vim instance. When the syntastic plugin gets disabled, no such directories are created. When I ran inotify, I found that a numeric file is created…
Lekensteyn
  • 64,486
  • 22
  • 159
  • 192
2
votes
1 answer

Problems setting Vim + Syntastic + JSHint (Linux)

I have JSHint installed: alex@alex-K43U:~$ which jshint /home/alex/nvm/v0.8.8/bin/jshint '/home/alex/.vim/bundle/syntastic' And I'm pointing to it on my .vimrc: " Syntastic let g:syntastic_check_on_open=1 let g:syntastic_javascript_checkers =…
alexchenco
  • 53,565
  • 76
  • 241
  • 413
2
votes
2 answers

Syntastic mode map per checker

Is there any way to separate the syntastic_mode (active vs. passive) depending on the checker? For example, I want it to be active for 'php' (syntax) errors but passive for 'phpcs','phpmd' (style) checkers. Joonty's phpqa plugin can do something…
Matt Styles
  • 456
  • 7
  • 12
2
votes
1 answer

disable "Quickfix list" in Syntastic

I'm happily using the Syntastic plugin for vim. The "Quickfix list" at the bottom of the window (technically, it's another vim window) takes up space and I don't really use it. Disabling the quickfix list via let g:syntastic_always_populate_loc_list…
Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
2
votes
1 answer

Syntastic: How to change file extension settings

I am working with a subset of C called c0. The syntax is pretty much identical, but the file extension is c0 instead of c. Is there a way to change my vimrc file to make Syntastic understand that c0 is the same as c so it will use the same linter…
2
votes
1 answer

Go Lang + Vim + Syntastic + goimports - make it work with AppEngine

I'm using vim to write AppEngine code. There are two useful plugins that don't work well. Syntastic: It shows the appengine imports as errors. goimports (https://github.com/bradfitz/goimports): I've added an issue on that project as well with the…
sathishvj
  • 1,394
  • 2
  • 17
  • 28
2
votes
1 answer

How to check non-c files in vim using syntastic and ycm without saving them?

I am using vim with the plugins YouCompleteMe and syntastic for autocompletion and syntax checking . If I am editing C or C++ files, syntax errors are marked after two seconds of in inactivity. When editing MATLAB files, syntax checks (using mlint)…
Tim
  • 1,430
  • 15
  • 36
2
votes
1 answer

Lint tools in C and C++ (and possibly Objective-C)

I use Vim as my IDE and one of the most useful plugins I have for it is Syntastic which allows code analysis and error reporting without having to compile the program. It supports the following checkers: Splint checkpatch oclint sparse ycm The…
Cromulent
  • 3,788
  • 4
  • 31
  • 41