Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

iabbrev doesn't autocorrect word after pressing space #51

Open
alanjcfs opened this issue May 13, 2013 · 1 comment
Open

iabbrev doesn't autocorrect word after pressing space #51

alanjcfs opened this issue May 13, 2013 · 1 comment

Comments

@alanjcfs
Copy link

I was following "Learn Vimscript the Hard Way", which had an instruction on setting :iabbrev adn and so that every time you type adn, it is corrected to and, but vim-autoclose seems to prevent iabbrev from working when you press space. This happens with alphabetical characters. Other iabbrev, like :iabbrev @@ [email protected] works correctly.

@alaaibrahim
Copy link

this is caused by commit 8ded63e I'm not really sure what that trys to solve, anyway for me to fix this I added

let g:AutoCloseExpandSpace = 0 " Make iabbrev work again

to my .vimrc file, and that fixes it.

felixSchl added a commit to felixSchl/dotfiles that referenced this issue Aug 3, 2016
kjhaber added a commit to kjhaber/dotfiles that referenced this issue Aug 1, 2018
Noticed that vim-autoclose breaks abbreviations feature of vim the other
day.  Found Townk/vim-autoclose#51 which
provides a workaround, seems to work when I enable it.

Also added an abbreviation mapping for one of my frequent typos of my
first name, while I was at it.  Eventually I may move abbreviations into
a separate file, but for now it's fine directly in vimrc.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants