mitchpaulus / autocorrect.vim Goto Github PK
View Code? Open in Web Editor NEWAutocorrect for Vim/Neovim built from scratch.
License: GNU General Public License v3.0
Autocorrect for Vim/Neovim built from scratch.
License: GNU General Public License v3.0
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.
I profoundly disagree with your hadn -> hand abbreviation. Consider, if you will, good sir, the case of "hadn't". Thank you and goodnight.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.