Vim to replace Vi
-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Darkness Approaches Looping
--
Chapters
00:00 Question
00:21 Accepted answer (Score 37)
02:33 Answer 2 (Score 29)
02:45 Answer 3 (Score 11)
03:06 Answer 4 (Score 11)
03:42 Thank you
--
Full question
https://superuser.com/questions/27091/vi...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #vim #vi
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Darkness Approaches Looping
--
Chapters
00:00 Question
00:21 Accepted answer (Score 37)
02:33 Answer 2 (Score 29)
02:45 Answer 3 (Score 11)
03:06 Answer 4 (Score 11)
03:42 Thank you
--
Full question
https://superuser.com/questions/27091/vi...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #vim #vi
#avk47
ANSWER 1
Score 29
In your .bashrc:
alias vi=vim
ANSWER 2
Score 12
If you need the changes only for your id, and within a terminal session: alias vi to vim as suggested by AI.
If you want a system-wide change on your machine, soft-link to vim in /usr/local/bin:
sudo ln -s `which vim` /usr/local/bin/vi
Note: Programs can ignore any aliases on vi by running command vi
or \vi
instead of just vi.
ANSWER 3
Score 11
If it is a Debian or Ubuntu system, and you want to make this change system wide, you should use update-alternatives
(specify with the --config editor
options, and you should be golden)
ANSWER 4
Score 3
Some dists use vim:s old school mode where it behaves like vi.
check if your .vimrc contains
set nocompatible
I have been fooled by this a couple of times....