vim asennusohje Linux-serverille

Miksi?

Enää kaikissa Linux-distribuutioissa ei tule automaattisesti vi tai vim-editoria mukana. Siispä asennetaan se itse.

Miten?

apt install vim

Entä jos asennus ei toimi suoraan?

Kokeile putsata mahdolliset “roskat” pakettijärjestelmästä ensin kolmella komennolla:

sudo apt-get remove vim-common 
sudo apt-get clean && sudo apt-get purge
sudo apt-get update && sudo apt-get install vim

En pääse ulos vim:stä!

Jos “hukut” vim:iin kun olet ajanut ohjelman, eli et pääse editorista pois, muista aina seuraava komento:

:q!

(kaksoispiste, pieni q, ja huutomerkki perään – sitten paina enter näppäimistöltä) – pitäisi toimia. Palaat shellin komentokehotteeseen.

Published by jukkasoft

Me: a code enthusiasta, technology optimist, but also a realist. In my blog something like 80% of the articles are technology related - mostly in English and Finnish. I like to envision and ponder about things, how life could be, what we are doing wrong today, and so on. "Invented" a facebook -like system in 2000, as a short product pamphlet. Haven't yet realized the 20+ ideas that might have become big things. Maybe learning this skill one of these days!

Leave a comment

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: