It was a hassle to find a way to install the Vim-like plugin XVim2 in Xcode every time, so I'll summarize it here as a reminder.
MacOS 11.0.1(Intel) Xcode12.3
The content described here is based on the original GitHub repository. https://github.com/XVimProject/XVim2
Open Keychain Access.app and select "Keychain Access"> "Certificate Assistant"> "Create Certificate ..." from the menu.
Change the name and certificate type and proceed to the next to complete the creation.
Then run the following command in the terminal:
sudo codesign -f -s XcodeSigner /Applications/Xcode.app
If you installed from the App Store, it should be in the above directory.
git clone [email protected]:XVimProject/XVim2.git
Make sure that 2. Self-sign Xcode in ↑ is completed, move to the cloned directory, and execute make
.
cd XVim2
make
When you start Xcode, a dialog will appear, so select "Load Bundle". (Note that "Skip Bundle" is active!)
Now the cursor becomes a block and you can do the same thing as Vim. Open your project and check it out!
If you installed the Xcode update, you will need to self-sign Xcode again and do a make
operation in the XVim2 directory.
At the time of writing this article, I updated Xcode12.2 installed on the App Store to 12.3, but when I started it immediately after the update, the function was canceled. Going to the XVim2 directory and running make
doesn't work. ..
However, when I started over from 2. Self-signed Xcode, I was able to confirm that it still works.
Recommended Posts