How to install vi?
How do I install the vi editor in Ubuntu 18.04? I want to try vi, not vim. I am just curious to see how it works. Thanks!
software-installation vi
|
show 2 more comments
How do I install the vi editor in Ubuntu 18.04? I want to try vi, not vim. I am just curious to see how it works. Thanks!
software-installation vi
@RezaRahemi 18.04
– eeze
Dec 9 '18 at 4:50
1
@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– eeze
Dec 9 '18 at 4:51
1
What exactly do you mean by vi here?
– muru
Dec 9 '18 at 5:52
2
@N0rbert "How do I install applications in Ubuntu?" is a duplicate of many software installation questions, but it's not a duplicate of this question because there are multiple vim packages in the default Ubuntu repositories and the linked question does not answer how to select a package for installation when there are multiple alternative packages available in the default Ubuntu repositories.
– karel
Dec 9 '18 at 9:10
1
@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
Dec 13 '18 at 10:23
|
show 2 more comments
How do I install the vi editor in Ubuntu 18.04? I want to try vi, not vim. I am just curious to see how it works. Thanks!
software-installation vi
How do I install the vi editor in Ubuntu 18.04? I want to try vi, not vim. I am just curious to see how it works. Thanks!
software-installation vi
software-installation vi
edited Dec 13 '18 at 10:28
Zanna
50k13131239
50k13131239
asked Dec 9 '18 at 4:44
eeze
7818
7818
@RezaRahemi 18.04
– eeze
Dec 9 '18 at 4:50
1
@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– eeze
Dec 9 '18 at 4:51
1
What exactly do you mean by vi here?
– muru
Dec 9 '18 at 5:52
2
@N0rbert "How do I install applications in Ubuntu?" is a duplicate of many software installation questions, but it's not a duplicate of this question because there are multiple vim packages in the default Ubuntu repositories and the linked question does not answer how to select a package for installation when there are multiple alternative packages available in the default Ubuntu repositories.
– karel
Dec 9 '18 at 9:10
1
@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
Dec 13 '18 at 10:23
|
show 2 more comments
@RezaRahemi 18.04
– eeze
Dec 9 '18 at 4:50
1
@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– eeze
Dec 9 '18 at 4:51
1
What exactly do you mean by vi here?
– muru
Dec 9 '18 at 5:52
2
@N0rbert "How do I install applications in Ubuntu?" is a duplicate of many software installation questions, but it's not a duplicate of this question because there are multiple vim packages in the default Ubuntu repositories and the linked question does not answer how to select a package for installation when there are multiple alternative packages available in the default Ubuntu repositories.
– karel
Dec 9 '18 at 9:10
1
@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
Dec 13 '18 at 10:23
@RezaRahemi 18.04
– eeze
Dec 9 '18 at 4:50
@RezaRahemi 18.04
– eeze
Dec 9 '18 at 4:50
1
1
@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– eeze
Dec 9 '18 at 4:51
@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– eeze
Dec 9 '18 at 4:51
1
1
What exactly do you mean by vi here?
– muru
Dec 9 '18 at 5:52
What exactly do you mean by vi here?
– muru
Dec 9 '18 at 5:52
2
2
@N0rbert "How do I install applications in Ubuntu?" is a duplicate of many software installation questions, but it's not a duplicate of this question because there are multiple vim packages in the default Ubuntu repositories and the linked question does not answer how to select a package for installation when there are multiple alternative packages available in the default Ubuntu repositories.
– karel
Dec 9 '18 at 9:10
@N0rbert "How do I install applications in Ubuntu?" is a duplicate of many software installation questions, but it's not a duplicate of this question because there are multiple vim packages in the default Ubuntu repositories and the linked question does not answer how to select a package for installation when there are multiple alternative packages available in the default Ubuntu repositories.
– karel
Dec 9 '18 at 9:10
1
1
@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
Dec 13 '18 at 10:23
@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
Dec 13 '18 at 10:23
|
show 2 more comments
2 Answers
2
active
oldest
votes
There's no such thing as "original" vi on Linux.
If one wants to try the original flavor of vi, there's several versions he can try.
vim.tiny as the other answer suggested.
run
busybox vi
, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.The traditional vi project, run by Gunnar Ritter, the first one who
ported vi to Linux. You need to compile from source for this one.
add a comment |
To install vi in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install vim-tiny
This package contains a minimal version of Vim compiled with no GUI and a small subset of features which runs with 'compatible' set, no language bindings, no X/GUI support. This package's sole purpose is to provide the vi binary for base installations.
If a vim binary is wanted, try one of the following more full-featured
packages: vim, vim-nox, vim-athena, vim-gtk, or vim-gtk3.
To edit a file named FILE in vi type:
vi /path/to/FILE
Results of which vi
:
/usr/bin/vi
Results of update-alternatives
:
$ update-alternatives --list vim
/usr/bin/vim.gtk3
$ update-alternatives --list vi
/usr/bin/vim.gtk3
/usr/bin/vim.tiny
$ update-alternatives --config vi
There are 2 choices for the alternative vi (providing /usr/bin/vi).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.gtk3 50 auto mode
1 /usr/bin/vim.gtk3 50 manual mode
2 /usr/bin/vim.tiny 15 manual mode
Press <enter> to keep the current choice[*], or type selection number:
1
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
2
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099484%2fhow-to-install-vi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There's no such thing as "original" vi on Linux.
If one wants to try the original flavor of vi, there's several versions he can try.
vim.tiny as the other answer suggested.
run
busybox vi
, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.The traditional vi project, run by Gunnar Ritter, the first one who
ported vi to Linux. You need to compile from source for this one.
add a comment |
There's no such thing as "original" vi on Linux.
If one wants to try the original flavor of vi, there's several versions he can try.
vim.tiny as the other answer suggested.
run
busybox vi
, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.The traditional vi project, run by Gunnar Ritter, the first one who
ported vi to Linux. You need to compile from source for this one.
add a comment |
There's no such thing as "original" vi on Linux.
If one wants to try the original flavor of vi, there's several versions he can try.
vim.tiny as the other answer suggested.
run
busybox vi
, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.The traditional vi project, run by Gunnar Ritter, the first one who
ported vi to Linux. You need to compile from source for this one.
There's no such thing as "original" vi on Linux.
If one wants to try the original flavor of vi, there's several versions he can try.
vim.tiny as the other answer suggested.
run
busybox vi
, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.The traditional vi project, run by Gunnar Ritter, the first one who
ported vi to Linux. You need to compile from source for this one.
edited Dec 10 '18 at 6:58
answered Dec 10 '18 at 6:29
Alvin Liang
6618
6618
add a comment |
add a comment |
To install vi in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install vim-tiny
This package contains a minimal version of Vim compiled with no GUI and a small subset of features which runs with 'compatible' set, no language bindings, no X/GUI support. This package's sole purpose is to provide the vi binary for base installations.
If a vim binary is wanted, try one of the following more full-featured
packages: vim, vim-nox, vim-athena, vim-gtk, or vim-gtk3.
To edit a file named FILE in vi type:
vi /path/to/FILE
Results of which vi
:
/usr/bin/vi
Results of update-alternatives
:
$ update-alternatives --list vim
/usr/bin/vim.gtk3
$ update-alternatives --list vi
/usr/bin/vim.gtk3
/usr/bin/vim.tiny
$ update-alternatives --config vi
There are 2 choices for the alternative vi (providing /usr/bin/vi).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.gtk3 50 auto mode
1 /usr/bin/vim.gtk3 50 manual mode
2 /usr/bin/vim.tiny 15 manual mode
Press <enter> to keep the current choice[*], or type selection number:
1
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
2
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
add a comment |
To install vi in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install vim-tiny
This package contains a minimal version of Vim compiled with no GUI and a small subset of features which runs with 'compatible' set, no language bindings, no X/GUI support. This package's sole purpose is to provide the vi binary for base installations.
If a vim binary is wanted, try one of the following more full-featured
packages: vim, vim-nox, vim-athena, vim-gtk, or vim-gtk3.
To edit a file named FILE in vi type:
vi /path/to/FILE
Results of which vi
:
/usr/bin/vi
Results of update-alternatives
:
$ update-alternatives --list vim
/usr/bin/vim.gtk3
$ update-alternatives --list vi
/usr/bin/vim.gtk3
/usr/bin/vim.tiny
$ update-alternatives --config vi
There are 2 choices for the alternative vi (providing /usr/bin/vi).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.gtk3 50 auto mode
1 /usr/bin/vim.gtk3 50 manual mode
2 /usr/bin/vim.tiny 15 manual mode
Press <enter> to keep the current choice[*], or type selection number:
1
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
2
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
add a comment |
To install vi in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install vim-tiny
This package contains a minimal version of Vim compiled with no GUI and a small subset of features which runs with 'compatible' set, no language bindings, no X/GUI support. This package's sole purpose is to provide the vi binary for base installations.
If a vim binary is wanted, try one of the following more full-featured
packages: vim, vim-nox, vim-athena, vim-gtk, or vim-gtk3.
To edit a file named FILE in vi type:
vi /path/to/FILE
Results of which vi
:
/usr/bin/vi
Results of update-alternatives
:
$ update-alternatives --list vim
/usr/bin/vim.gtk3
$ update-alternatives --list vi
/usr/bin/vim.gtk3
/usr/bin/vim.tiny
$ update-alternatives --config vi
There are 2 choices for the alternative vi (providing /usr/bin/vi).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.gtk3 50 auto mode
1 /usr/bin/vim.gtk3 50 manual mode
2 /usr/bin/vim.tiny 15 manual mode
Press <enter> to keep the current choice[*], or type selection number:
To install vi in all currently supported versions of Ubuntu open the terminal and type:
sudo apt install vim-tiny
This package contains a minimal version of Vim compiled with no GUI and a small subset of features which runs with 'compatible' set, no language bindings, no X/GUI support. This package's sole purpose is to provide the vi binary for base installations.
If a vim binary is wanted, try one of the following more full-featured
packages: vim, vim-nox, vim-athena, vim-gtk, or vim-gtk3.
To edit a file named FILE in vi type:
vi /path/to/FILE
Results of which vi
:
/usr/bin/vi
Results of update-alternatives
:
$ update-alternatives --list vim
/usr/bin/vim.gtk3
$ update-alternatives --list vi
/usr/bin/vim.gtk3
/usr/bin/vim.tiny
$ update-alternatives --config vi
There are 2 choices for the alternative vi (providing /usr/bin/vi).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.gtk3 50 auto mode
1 /usr/bin/vim.gtk3 50 manual mode
2 /usr/bin/vim.tiny 15 manual mode
Press <enter> to keep the current choice[*], or type selection number:
edited Dec 9 '18 at 5:46
answered Dec 9 '18 at 4:54
karel
57.1k12127146
57.1k12127146
1
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
2
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
add a comment |
1
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
2
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
1
1
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
is vim-tiny 100% vi compatible, with no additions? I am really wanting to try out plain vi to see what it is like.
– eeze
Dec 9 '18 at 4:58
2
2
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
@Cee VIM stands for Vi IMproved (as per VIM official documentation). So, vim-minimal (No GUI) and vi must be somewhat same. You might like to read Biggest differences between Vim and VI - Vi and Vim Stack Exchange
– Kulfy
Dec 9 '18 at 9:40
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099484%2fhow-to-install-vi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
@RezaRahemi 18.04
– eeze
Dec 9 '18 at 4:50
1
@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– eeze
Dec 9 '18 at 4:51
1
What exactly do you mean by vi here?
– muru
Dec 9 '18 at 5:52
2
@N0rbert "How do I install applications in Ubuntu?" is a duplicate of many software installation questions, but it's not a duplicate of this question because there are multiple vim packages in the default Ubuntu repositories and the linked question does not answer how to select a package for installation when there are multiple alternative packages available in the default Ubuntu repositories.
– karel
Dec 9 '18 at 9:10
1
@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
Dec 13 '18 at 10:23