I have an iPad. I love Neovim. Can I use it on my iPad? -- Let's try it.
iSH is a Linux shell built for iOS & iPadOS, using usermode x86 emulation and syscall translation. It's not a SSH client. You can actually have a terminal locally on your device.
It runs Alpine Linux, so you can install packages with
apk command. Pretty neat!
Apparently, the official iSH package repository currently provides only Neovim 0.4.
Looks like you need to build the latest Neovim from its source.
apk update apk add git build-base cmake automake autoconf libtool pkgconf coreutils curl unzip gettext-tiny-dev
Clone the reopsitory:
git clone https://github.com/neovim/neovim.git cd neovim
make -j4 CMAKE_BUILD_TYPE=Release
But got an error:
Install the project... -- Install configuration: "Release" -- Installing: /root/neovim/.deps/usr/lib/libluv_a.a -- Installing: /root/neovim/.deps/usr/include/luv/luv.h -- Installing: /root/neovim/.deps/usr/include/luv/util.h -- Installing: /root/neovim/.deps/usr/include/luv/lhandle.h -- Installing: /root/neovim/.deps/usr/include/luv/lreq.h make: Leaving directory '/root/neovim/.deps/build/src/luv-static-build' [ 94%] Completed 'luv-static' make: Leaving directory '/root/neovim/.deps' [ 94%] Built target luv-static make: Leaving directory '/root/neovim/.deps' make: *** [Makefile:104: all] Error 2 make: Leaving directory '/root/neovim/.deps' make: *** [Makefile:105: deps] Error 2
I don't understand what's going wrong from this error log.
iSH is quite unstable on doing those things.
I decided to go another way.
The iSH's default package repository is kind of outdated.
So, I tried to use the Alpine's official edge repository.
Because neovim-0.5.0 is available there:
echo https://dl-cdn.alpinelinux.org/alpine/edge/main > /etc/apk/repositories echo https://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories apk update apk upgrade apk add neovim
Boom. It worked!
I found that git or nodejs won't work if I installed it from the edge repos due to "Bad system call".
So, you basically should be on the default package repos.
I hope iSH gets more stable. Kudos to tbodt for the awesome work!
I've made a tutorial video on how to set up Neovim on macOS: