Git Product home page Git Product logo

Comments (10)

lcd047 avatar lcd047 commented on July 16, 2024 18

@taromero I strongly recommend you to invest a few minutes in reading the manual.

from syntastic.

lcd047 avatar lcd047 commented on July 16, 2024 10

@LandonSchropp As I said above: if you switch to passive mode, the files are not checked unless you explicitly request it:

let g:syntastic_mode_map = { 'mode': 'passive' }

How to detect Neomake is installed and / or active is a question for Neomake authors.

from syntastic.

shurane avatar shurane commented on July 16, 2024 2

Could there be a keyword like 'disable' or 'turn off' next to :SyntasticToggleMode ? Asking because that's what I looked for while looking for this feature. I didn't find it so I resorted to google.

from syntastic.

taromero avatar taromero commented on July 16, 2024 1

Putting the following in my .vimrc worked for me (as a workaround):

autocmd VimEnter * SyntasticToggleMode " disable syntastic by default

It runs :SyntasticToggleMode when opening Vim.

from syntastic.

scrooloose avatar scrooloose commented on July 16, 2024

Check out master now - most notably this commit 78fbd7f.

There is also :SyntasticToggleMode to switch between active/passive modes. Ill be updating the doc etc soon, but the commit message should give you enough to get started.

from syntastic.

lcd047 avatar lcd047 commented on July 16, 2024

@shurane If you switch to passive mode, the files are not checked unless you explicitly request it. In passive mode nothing much happens in background, only the status line is updated, so there isn't much point in disabling Syntastic. But yes, there is no way to disable Syntastic completely (and adding such a feature wouldn't be trivial).

from syntastic.

taromero avatar taromero commented on July 16, 2024

@lcd047 why would that be?

from syntastic.

LandonSchropp avatar LandonSchropp commented on July 16, 2024

👍 I'd love an easy way to disable Syntastic if Neomake is installed.

from syntastic.

andbar-ru avatar andbar-ru commented on July 16, 2024

Having
let g:syntastic_mode_map = {"mode": "passive", "active_filetypes": ["python"], "passive_filetypes": [] }
in ~/.vim/vimrc

command ToggleSyntastic if !exists('g:syntastic_mode_map_bak') | let g:syntastic_mode_map_bak = g:syntastic_mode_map | let g:syntastic_mode_map = {'mode':'passive'} | else | let g:syntastic_mode_map = g:syntastic_mode_map_bak | unlet g:syntastic_mode_map_bak | endif

map <C-F7> :ToggleSyntastic<CR>
imap <C-F7> <C-o>:ToggleSyntastic<CR>

from syntastic.

lcd047 avatar lcd047 commented on July 16, 2024

@andbar-ru This is exactly what :SyntasticToggleMode does.

from syntastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.