Questions tagged [plugin-syntastic]

Automatically check for syntax or formatting errors.

Filter by
Sorted by
Tagged with
0
votes
1answer
95 views

Add flake8 ignore comment automatically from syntastic location list

I'm using synatastic with flake8 in neovim for python development. I want to name variables in upper case occasionally but I don't want to turn the warning off completely. However I get bored of ...
0
votes
1answer
63 views

Vim opens another file instead of source (Syntastic?)

I have been using vim for a while now and have some plugins including syntastic. I got a project with fileA.cpp fileA.h fileB.cpp fileB.h While debugging, I run vim fileA.cpp, and it will open fileB.h....
1
vote
0answers
19 views

Adding an header when checking an HPP file on the fly

I often use HPP files when separating a template header from its implementation. In this scheme an #include"impl.hpp" is inserted in the .h (the header) file after all relevant definitions. As such, ...
1
vote
0answers
29 views

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 ...
2
votes
0answers
140 views

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

syntastic plugin files getting sourced twice [closed]

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 ...
3
votes
2answers
2k views

Change color of signs in SignColumn/Gutter

I have set my sign column background using hi SignColumn ctermbg=236 in my colorscheme file. However, it seems that the background colors for where there are signs has not been changed, and is the ...
2
votes
1answer
373 views

vimrc if syntastic use

This ~/.vimrc excerpt; if has('syntastic') let g:syntastic_sh_shellcheck_args="-x" endif is always false. What is the correct condition to check? I also tried if exists('*syntastic*') Without ...
2
votes
1answer
76 views

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

`vint` linter just quits due to a vim plugin incompatibility

[Vim 8.0.1 / Syntastic 3.9.0-19 / Vundle 0.5 / vint 0.3.19 on Arch Linux] My vim linter seems to be broken and I don't quite understand why. It's been working fine in its present configuration, ...
0
votes
1answer
261 views

Indentation command `gg=G` for 'compressed' HTML doesn't unfold tags

Sometimes I copy 'compressed' HTML from TEXTAREA an I get code for ex. like this: <html><body><h1>header1</h1><p></p> <p></p> <div><p></...
0
votes
1answer
831 views

NASM and syntastic: binary output format does not support external references

When I'm running syntastic, I always see the NASM error, binary output format does not support external references ...
1
vote
1answer
3k views

How do I configure syntastic to use Python3 in Ubuntu?

The following code shows invalid syntax. I assume syntastic is looking at Python2 for syntax-checking. I need it to look at Python3 instead. def x(): x = 42 def y(): nonlocal x x = 8 ...
0
votes
1answer
689 views

Open and Close Syntastic window with one mapping

I have :SyntasticCheck mapped to F8 in my .vimrc. map <F8> :SyntasticCheck<CR> This open the Syntastic window on a split. I would like to close it with the same mapping. Closing is done ...
1
vote
1answer
2k views

Temporarily Disable/Reenable YouCompleteMe Plugin

Is there a way to temporarily disable/reenable the YouCompleteMe Plugin for vim? Syntastic has a nice way of doing so with the SyntasticToggleMode command (useful for when I know I'm writing code that ...
2
votes
1answer
970 views

NASM and Syntastic: instruction not supported in 16-bit mode

Whenever using NASM, and syntactic I get the warning instruction not supported in 16-bit mode How do I provide the argument to tell it to not use 16-bit mode?
4
votes
1answer
303 views

How do I wrap the location-list by default (without turning on wrap for files)?

I think this should be a quick answer, but I can't figure it out from :help location-list and my Google searches seem to highlight that I may not know the correct terms to look for. For the sake of ...
1
vote
0answers
218 views

Backticks vs. $() in strings/variable assignment

I'm quite new to Vimscript and editing ~/.vimrc, and was tweaking this file after having installed Pathogen and Syntastic to do live syntax checking for JavaScript. However, in my current set-up, I ...
1
vote
0answers
36 views

Can I make the :lnext, :lprev commands continue at TOP/BOTTOM after reaching the end/beginning of the location list? [duplicate]

The Syntastic Plugin populates the location list with syntax error locations. If navigating these with :lnext, after reaching the end of the file, Vim raises the error E553: No more items. Instead, I ...
2
votes
0answers
234 views

Comprehesive support for graphviz (linting/autocompletion/snippets)

Vim comes with some support (syntax highlighting) out of the box for the DOT language (graphviz) In addition, I found the plugin: https://github.com/wannesm/wmgraphviz.vim, which provides integrated ...
1
vote
0answers
742 views

Syntastic not working with local eslint

I have a scenario where I have a local .eslintrc and the local eslint package installed. However, I notice that it does not populate a loclist on a file called app.js when I open the file and when I ...
2
votes
0answers
253 views

syntastic not working on macvim, but works perfectly fine on the terminal

I have an issue where in MacVim, I don't get any syntastic/eslint related functionality. When I run !which eslint in macvim, I get "eslint not found" - eslint is definitely installed. If I run !...
2
votes
0answers
1k views

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 ...
4
votes
1answer
1k views

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. \...
7
votes
2answers
2k views

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 ...
5
votes
1answer
291 views

How to highlight in location list error for current line

What command could I use to highlight the error in the location list for the line where the cursor is in normal mode? Ie, the inverse operation of selecting a line in the location list and hitting [...
2
votes
1answer
644 views

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 ...
2
votes
0answers
102 views

Syntastic checking for embedded handlebars code?

I'm editing some HTML, which has embedded handlebars templates. For example: <script id="rowTemplate" type="text/x-handlebars-template"> <tr> <td>{{ id }}</td> <td&...
2
votes
0answers
300 views

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 ...
14
votes
2answers
8k views

How to auto fix common linting errors reported via syntastic?

I started using syntastic plugin with vim to report lint errors in my javascript code. I also integrated eslint with syntastic, and it shows me nice errors, warnings in case they are present as per ...
4
votes
1answer
2k views

How to set a local variable for a plugin in a BufNewFile autocmd

I currently have autocmd BufRead *.sage \ set filetype=python | \ let b:syntastic_skip_checks=1 which works as intended (sage files are treated as Python, but with Syntastic disabled)...
4
votes
1answer
2k views

How to switch between syntastic error window and editor window

I am new to vim and currently learning as well. I just started using syntastic in vim to lint my code. I have set following vars in my .vimrc file: let g:syntastic_always_populate_loc_list = 1 let g:...
5
votes
2answers
2k views

How to enable syntastic only for Python?

There are various questions and answers about disabling/blacklisting certain file types. How do I disable syntastic for all but one filetype? (Let's say Python.)
1
vote
1answer
317 views

How to pass a parameter to JSHint with Syntastic

I need to pass a paramter (-extract) to the jshint syntax checker such that it extracts JavaScript from HTML before checking. Unfortunatly I have no idea how to do that for syntastic.
2
votes
1answer
5k views

Syntastic doesn't find C header files despite Configuring

I have configured the following properly in my .vimrc in the root folder of a project to keep syntastic settings Project specific. But still Syntastic throws errors saying "No Such File or Directory"...
3
votes
1answer
3k views

syntastic C++14 support

I tried this solution using instead of C++11 C++14, but it doesn't work, I still get for this line: auto number(0); that: 'auto' type specifier is incompatible with C++98 with syntastic. Why ...
4
votes
2answers
691 views

Can I force python-mode's (or syntastic's) error flags over the line number columns?

When syntastic or python-mode finds an error in my python file, they create a new column at the left-hand side of the window with flags at the lines where the errors are: This new column not only ...
18
votes
1answer
7k views

How do I disable syntastic for python files?

I have the syntastic and python-mode plugins installed and they both include syntax checkers. I think the python-mode syntax checker is more versitle for python files so I would like to just use that ...