Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian / Ubuntu build guide #25

Open
kajukenbo opened this issue Apr 12, 2023 · 1 comment
Open

Debian / Ubuntu build guide #25

kajukenbo opened this issue Apr 12, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@kajukenbo
Copy link

kajukenbo commented Apr 12, 2023

I will post this here in case it is of use to someone.
Feel free to move or purge it as you think appropriate ~

cd $HOME/Downloads

curl -LO https://github.com/johnsonjh/OpenVi/releases/latest
va=$( grep "Release OpenVi [0-9]" latest | sed '1!d' | awk '{ if ($3 ~ "[0-9]") { print $3 } else { next }}' )
# https://github.com/johnsonjh/OpenVi/releases/tag/7.3.22
vb=$( awk -F';' '/\/releases\/tag/ { print }' latest | sed 's/.*http/http/; s/\&quot.*//' |  grep -v -i assets | grep ^http | sort -u )

echo $va
echo $vb

# https://github.com/johnsonjh/OpenVi/archive/refs/tags/7.3.22.tar.gz
curl -LO https://github.com/johnsonjh/OpenVi/archive/refs/tags/"$va".tar.gz

tar -zxvf "$va".tar.gz
cd OpenVi-"$va"
ls -l

sudo apt -y install libncurses-dev gcc make
sudo env PREFIX=/usr/local make install

sudo update-alternatives --install /usr/bin/vi vi /usr/local/bin/ovi 0
sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/ovi 0
sudo update-alternatives --install /usr/bin/view view /usr/local/bin/oview 0
sudo update-alternatives --install /usr/bin/ex ex /usr/local/bin/oex 0

sudo update-alternatives --set vi /usr/local/bin/ovi
sudo update-alternatives --set editor /usr/local/bin/ovi
sudo update-alternatives --set view /usr/local/bin/oview
sudo update-alternatives --set ex /usr/local/bin/oex

#sudo apt -y remove nvi nvi-doc vim* nano*
@kajukenbo
Copy link
Author

kajukenbo commented Apr 12, 2023

Thank you very much for keeping a proper vi implementation current and available!

@johnsonjh johnsonjh added the documentation Improvements or additions to documentation label Apr 23, 2023
@johnsonjh johnsonjh self-assigned this Apr 23, 2023
@johnsonjh johnsonjh added this to the 7.5 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants