Git Product home page Git Product logo

autocorrect.vim's People

Contributors

mitchpaulus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

harrisoncramer

autocorrect.vim's Issues

Improvement: load iabbrevs async

I had the same idea as you: use iabbrev for autocorrect. As the list of corrections grows it takes longer to insert new abbrevs and the total time makes it inconvenient to load them with every running instance of vim.

This is now a solved problem. Take a look at the code from my version that uses the vim 8/nvim function timer_start to load the words and execute iabbrev commands asynchronously in batches at a delay.

With this I am now using my corrections on every transient instance of vim. My list of over 43,000 corrections loads in about 6-10 seconds without perceivably blocking user input, which is only two seconds slower than doing it while fully blocking user input.

hadn -> hand

I profoundly disagree with your hadn -> hand abbreviation. Consider, if you will, good sir, the case of "hadn't". Thank you and goodnight.

CDing to the wrong place

In your AutocorrectForceLoad function you're saving the previous directory with:

let previousDirectory = expand("%:p:h")

But that's not necessarily the real previous directory. You should be using getcwd().

I think I'm right about this. I keep being transported against my will into the parent directory of the file I'm editing.

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.