This question already has an answer here:
I recently upgraded my system VIM to 8.0.0893 (stable) from the system default 7.4 using Homebrew and including the
--with-override-system-vi. After doing so I confirmed that I was now using VIM 8.0.
I then tried to edit a file I had created when I was using VIM 7.4 (my
.bash_profile). I was able to enter insert mode by pressing
i, and I was able to add new characters and delete what I had added just then.
However, when I tried to delete old characters (i.e. aliases I had added prior to upgrading to VIM 8.0, etc.) I was unable to do so (nothing happened). I tried entering append mode using
a as well and got the same result. I was able to delete lines using
dd, so I don't think it's an issue where the file is somehow locked, and I could save my changes fine.
Does anyone have any ideas why this might have happened? I am using the system default bash
GNU bash version 3.2.57(1)-release (x86_64-apple-darwin16)
For the time being I have reverted back to VIM 7.4 by uninstalling the Homebrew VIM and restarting my Terminal, and that has fixed the issue. Feel free to ask for any other relevant details.
EDIT: below is my .vimrc, which I have confirmed is being loaded by the homebrew version of VIM.
set nocompatible set wildmode=list,full set ruler set number set hlsearch syntax on set mouse=a