Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-syntastic]

Automatically check for syntax or formatting errors.

0
votes
2answers
37 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 ...
1
vote
1answer
44 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
26 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
71 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
45 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
65 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
137 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
64 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
0answers
51 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 ...
1
vote
1answer
120 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
143 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 ...
0
votes
0answers
81 views

TypeScript compile on save in vim using tsconfig.json

How does one configure VIM to use the TypeScript project configuration file tsconfig.json' compilerOptions field, in compiling the TypeScript files to the appropiate directories. So far, I've been ...
0
votes
0answers
44 views

“cannot find name … ” vim console message

What does it mean when the syntastic vim plugin cannot find a name, in the following?: I get the same message for the crossfilter package. Also, when saving the file, this same message gets shown in ...
1
vote
0answers
107 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
30 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 ...
1
vote
0answers
82 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
427 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 ...
0
votes
0answers
290 views

Syntastic + nerdtree-git-plugin: IOError: [Errno 2] No such file or directory: 'NERD_tree_1'

Using Syntastic + nerdtree-git-plugin, I don't get syntax errors displayed. Instead, I get this error: NERDTree: Refreshing the root node. This could take a while... DONE syntastic: error: checker ...
3
votes
0answers
191 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 !...
1
vote
0answers
604 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
574 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. \...
5
votes
1answer
537 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 ...
6
votes
1answer
217 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
332 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 ...
1
vote
0answers
78 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
206 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 ...
13
votes
2answers
6k 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
541 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)...
3
votes
1answer
1k 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:...
3
votes
2answers
1k 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
201 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.
-1
votes
1answer
3k 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
2k 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
1answer
551 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 ...
16
votes
1answer
5k 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 ...