Vim does not seem able to create global abbreviations. So I created an abbreviations file (called autocorrect.vim) with the following line in my .vimrc file:
:source ~/autocorrect.vim
I then manually added my abbreviations to this file. If I work in any document these abbreviations are available to me.
However, if I am working in a new document and try to add new abbreviations to this list or remove abbreviations, it last only for the session. Once I quit vim I lose all changes. To make abbreviations permanent I have to manually edit the autocorrect.vim file directly.
The thing is that if I work in a new document and add abbreviations I can see that they have been added to my abbreviations list (by calling :ab). However, when I exit they are lost. How can I make these changes global and permanent?
I am hoping to find a solution that does not require a plugin.