Coder Social home page Coder Social logo

Comments (7)

907th avatar 907th commented on July 1, 2024

@psy-q Thanks for opening it! Unfortunately I have no time to investigate it now ( but PR is welcome!

from vim-auto-save.

psy-q avatar psy-q commented on July 1, 2024

I've tried to find out what the issue might be, but I suspect it could also be something in Syntastic, as that is more complex and uses more hooks than vim-auto-save. My VimL isn't good enough to dig deeper at the moment, though :(

from vim-auto-save.

rambo-panda avatar rambo-panda commented on July 1, 2024

I have the same problem。

" this is my temporary  solution
function! AutoSave()
  if g:auto_save >= 1
    let was_modified = &modified
    silent! wa
    silent! SyntasticCheck
    if was_modified && !&modified && g:auto_save_silent == 0
      if exists("g:auto_save_postsave_hook")
        execute "" . g:auto_save_postsave_hook
      endif
      echo "(AutoSaved at " . strftime("%H:%M:%S") . ")"
    endif
  endif
endfunction

from vim-auto-save.

907th avatar 907th commented on July 1, 2024

@psy-q @rambo-panda I believe it's fixed now. Please, check.

from vim-auto-save.

psy-q avatar psy-q commented on July 1, 2024

Fantastic, working fine now. Thanks!

from vim-auto-save.

vasilakisfil avatar vasilakisfil commented on July 1, 2024

Hi! I think there should an option for that! In static language you can't work if syntatic runs everytime you leave insert mode! It was working great before that :)

from vim-auto-save.

leoroos avatar leoroos commented on July 1, 2024

Hello Vasilakisfil!

If you think this is worthwhile you should open a new issue describing the problem you have when using auto-save together with Syntastic.

There are already configuration options on which events auto save should fire. You can in detail define the events with the g:auto_save_events option. Since this does not seem to be enough to configure your desired behavior, could you additionally describe in detail the kind of behavior you would envision for an integration with Syntastic?

I assume you would want to prevent Syntastic checks to fire on every save, but still automatically to fire on certain points in time/events. So simply disabling it when performing autosave is probably not the solution?

from vim-auto-save.

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.