Skip to content

Commit 6ece72c

Browse files
committed
migrated to vim v8.2.2886
1 parent 7cac958 commit 6ece72c

File tree

8 files changed

+48
-29
lines changed

8 files changed

+48
-29
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# Nano for Android NDK
2-
### osm0sis @ xda-developers
3-
*Static ARM nano binary for Android built with the NDK*
1+
# vim for Android NDK
2+
vim version of osm0sis's vim-ndk modules, all credits to him.
3+
### [osm0sis nano-ndk](https://github.com/Magisk-Modules-Repo/nano-ndk)
4+
the vim binary i used is from Zackptg5 : [Cross-Compiled-Binaries-Android](https://github.com/Zackptg5/Cross-Compiled-Binaries-Android)
45

5-
### Links
6-
* [GitHub](https://github.com/Magisk-Modules-Repo/nano-Installer)
7-
* [Support](https://forum.xda-developers.com/showthread.php?t=2239421)
8-
* [Sponsor](https://github.com/sponsors/osm0sis)
9-
* [Donate](https://www.paypal.me/osm0sis)
6+
check convert-to-vim.zsh to see the steps
107

118
### Description
12-
A simple installer to push my own static Android ARM build of the nano editor binary to /system/xbin/ along with the required files in /system/etc/terminfo/, and a wrapper with optional --term parameter to choose your terminfo profile. Detects and supports "systemless" install via SuperSU/Magisk as well. It can then be used from Terminal while booted from that point on.
9+
A simple installer to push static Android ARM build of the vim editor binary to /system/xbin/ along with the required files in /system/etc/terminfo/, and a wrapper with optional --term parameter to choose your terminfo profile. Detects and supports "systemless" install via SuperSU/Magisk as well. It can then be used from Terminal while booted from that point on.
1310

14-
Each time you flash in recovery it also temporarily enables use in recovery by pushing a script to /sbin/nano with the required environment variables, so you can then trigger it from recovery shell or the console in amarullz' brilliant AROMA Filemanager. Makes it extremely easy and worry-free to tweak and mod on the go, knowing you can edit the faulty build.prop or init.d script if something goes wrong.
11+
Each time you flash in recovery it also temporarily enables use in recovery by pushing a script to /sbin/vim with the required environment variables, so you can then trigger it from recovery shell or the console in amarullz' brilliant AROMA Filemanager. Makes it extremely easy and worry-free to tweak and mod on the go, knowing you can edit the faulty build.prop or init.d script if something goes wrong.

bin/nano.bin

-596 KB
Binary file not shown.

bin/nano renamed to bin/vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/system/bin/sh
2-
# nano: wrapper to set up and run nano from terminal
2+
# vim: wrapper to set up and run vim from terminal
33
# osm0sis @ xda-developers
44

55
dir="$(cd "$(dirname "$0")"; pwd)";
@@ -13,5 +13,5 @@ fi;
1313

1414
clear;
1515
resize >/dev/null 2>&1;
16-
TERMINFO=$dir/../etc/terminfo TERM=$term $dir/nano.bin "$@";
16+
TERMINFO=$dir/../etc/terminfo TERM=$term $dir/vim.bin "$@";
1717

bin/vim.bin

3.57 MB
Binary file not shown.

convert-to-vim.zsh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
mv README.md README.md.bak
2+
mv convert-to-vim.zsh convert-to-vim.zsh.bak
3+
git fetch https://github.com/Magisk-Modules-Repo/nano-ndk master
4+
git reset --hard FETCH_HEAD
5+
mv README.md.bak README.md
6+
mv convert-to-vim.zsh.bak convert-to-vim.zsh
7+
wget 'https://github.com/Zackptg5/Cross-Compiled-Binaries-Android/raw/master/vim/vim-arm64' -O bin/vim.bin
8+
vimversion=$(curl -s 'https://raw.githubusercontent.com/Zackptg5/Cross-Compiled-Binaries-Android/master/ccbins_files/includes.txt' | rg 'vim' | rg -o 'v(\d\.?)+')
9+
vimversioncode=$(sed 's#v##; s#\.##g' <<< $vimversion)
10+
rm bin/nano.bin
11+
fd -E convert-to-vim.zsh -E README.md -t f -x sed -i 's/nano/vim/gi' {}
12+
fd 'nano$' -x mv {} {//}/vim
13+
sed -i 's#nano#vim#gi; s#author=#author=mirsella'\''s fork of #' module.prop
14+
sed -i 's#version=.*#version='$vimversion'#; s#versionCode=.*#versionCode='$vimversioncode'#' module.prop
15+
git add -A
16+
git commit -m "migrated to vim $vimversion"
17+
git push -f origin master
18+
zip magisk-vim-ndk.zip $(fd -t f)
19+
gh config set prompt disabled
20+
gh release create "$vimversion" magisk-vim-ndk.zip -t "vim $vimversion (automatic release ⚠️)"
21+
gh config set prompt enabled
22+
rm magisk-vim-ndk.zip

diffusion_config.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Diffusion Installer Config
22
# osm0sis @ xda-developers
33

4-
INST_NAME="Nano Installer Script";
4+
INST_NAME="vim Installer Script";
55
AUTH_NAME="osm0sis @ xda-developers";
66

77
USE_ARCH=false
@@ -21,13 +21,13 @@ custom_target() {
2121

2222
custom_install() {
2323
ui_print " ";
24-
ui_print "Installing nano to $BIN ...";
24+
ui_print "Installing vim to $BIN ...";
2525
ui_print "Installing terminfo to $ETC ...";
26-
set_perm 0 0 755 $BIN/nano $BIN/nano.bin;
26+
set_perm 0 0 755 $BIN/vim $BIN/vim.bin;
2727
if ! $BOOTMODE; then
28-
ui_print "Installing nano recovery script to /sbin ...";
28+
ui_print "Installing vim recovery script to /sbin ...";
2929
cp -rf sbin/* /sbin;
30-
set_perm 0 0 755 /sbin/nano;
30+
set_perm 0 0 755 /sbin/vim;
3131
fi;
3232
}
3333

@@ -50,7 +50,7 @@ custom_cleanup() {
5050
custom_exitmsg() {
5151
if ! $BOOTMODE && [ "$ACTION" == installation ]; then
5252
ui_print " ";
53-
ui_print "nano may now be run temporarily from";
53+
ui_print "vim may now be run temporarily from";
5454
ui_print "terminal/adb shell for this recovery session,";
5555
ui_print "and from now on in booted Android.";
5656
fi;

module.prop

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
id=nano-ndk
2-
name=Nano for Android NDK
3-
version=5.7
4-
versionCode=5700
5-
author=osm0sis @ xda-developers
6-
description=Static ARM nano binary for Android built with the NDK
1+
id=vim-ndk
2+
name=vim for Android NDK
3+
version=v8.2.2886
4+
versionCode=822886
5+
author=mirsella's fork of osm0sis @ xda-developers
6+
description=Static ARM vim binary for Android built with the NDK
77
support=https://forum.xda-developers.com/showthread.php?t=2239421
88
donate=https://www.paypal.me/osm0sis
99
template=1500

sbin/nano renamed to sbin/vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/sbin/sh
2-
# nano: set up and run nano from recovery/terminal
2+
# vim: set up and run vim from recovery/terminal
33
# osm0sis @ xda-developers
44

55
(mount /data;
@@ -28,13 +28,13 @@ if [ "$suimg" ]; then
2828
losetup -d $loop 2>/dev/null;
2929
fi;
3030
fi;
31-
[ $mnt == /magisk ] && magisk=/nano-ndk/system;
31+
[ $mnt == /magisk ] && magisk=/vim-ndk/system;
3232
etc=$mnt$magisk/etc;
3333
bin=$mnt$magisk/bin;
3434
else
3535
mnt=$(dirname `find /data -name supersu_is_here | head -n1`);
36-
[ -e /data/adb/modules ] && mnt=/data/adb/modules/nano-ndk/system;
37-
[ -e /data/adb/modules_update ] && mnt=/data/adb/modules_update/nano-ndk/system;
36+
[ -e /data/adb/modules ] && mnt=/data/adb/modules/vim-ndk/system;
37+
[ -e /data/adb/modules_update ] && mnt=/data/adb/modules_update/vim-ndk/system;
3838
if [ -e "$mnt" ]; then
3939
etc=$mnt/etc;
4040
bin=$mnt/bin;
@@ -54,5 +54,5 @@ else
5454
fi;
5555

5656
clear;
57-
TERMINFO=$etc/terminfo TERM=$term $bin/nano.bin "$@";
57+
TERMINFO=$etc/terminfo TERM=$term $bin/vim.bin "$@";
5858

0 commit comments

Comments
 (0)