How to install vi?











up vote
5
down vote

favorite












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!










share|improve this question
























  • @RezaRahemi 18.04
    – Cee
    Dec 9 at 4:50






  • 1




    @RezaRahemi I was going to compile from souce, but I couldn't the source XD
    – Cee
    Dec 9 at 4:51






  • 1




    What exactly do you mean by vi here?
    – muru
    Dec 9 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 at 9:10








  • 1




    @Norbert the original vi is not in the Ubuntu repositories any more.
    – Warren Hill
    16 hours ago















up vote
5
down vote

favorite












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!










share|improve this question
























  • @RezaRahemi 18.04
    – Cee
    Dec 9 at 4:50






  • 1




    @RezaRahemi I was going to compile from souce, but I couldn't the source XD
    – Cee
    Dec 9 at 4:51






  • 1




    What exactly do you mean by vi here?
    – muru
    Dec 9 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 at 9:10








  • 1




    @Norbert the original vi is not in the Ubuntu repositories any more.
    – Warren Hill
    16 hours ago













up vote
5
down vote

favorite









up vote
5
down vote

favorite











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!










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 16 hours ago









Zanna

49.3k13127236




49.3k13127236










asked Dec 9 at 4:44









Cee

463




463












  • @RezaRahemi 18.04
    – Cee
    Dec 9 at 4:50






  • 1




    @RezaRahemi I was going to compile from souce, but I couldn't the source XD
    – Cee
    Dec 9 at 4:51






  • 1




    What exactly do you mean by vi here?
    – muru
    Dec 9 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 at 9:10








  • 1




    @Norbert the original vi is not in the Ubuntu repositories any more.
    – Warren Hill
    16 hours ago


















  • @RezaRahemi 18.04
    – Cee
    Dec 9 at 4:50






  • 1




    @RezaRahemi I was going to compile from souce, but I couldn't the source XD
    – Cee
    Dec 9 at 4:51






  • 1




    What exactly do you mean by vi here?
    – muru
    Dec 9 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 at 9:10








  • 1




    @Norbert the original vi is not in the Ubuntu repositories any more.
    – Warren Hill
    16 hours ago
















@RezaRahemi 18.04
– Cee
Dec 9 at 4:50




@RezaRahemi 18.04
– Cee
Dec 9 at 4:50




1




1




@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– Cee
Dec 9 at 4:51




@RezaRahemi I was going to compile from souce, but I couldn't the source XD
– Cee
Dec 9 at 4:51




1




1




What exactly do you mean by vi here?
– muru
Dec 9 at 5:52




What exactly do you mean by vi here?
– muru
Dec 9 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 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 at 9:10






1




1




@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
16 hours ago




@Norbert the original vi is not in the Ubuntu repositories any more.
– Warren Hill
16 hours ago










2 Answers
2






active

oldest

votes

















up vote
5
down vote













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:





share|improve this answer



















  • 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.
    – Cee
    Dec 9 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 at 9:40




















up vote
4
down vote













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.




  1. vim.tiny as the other answer suggested.


  2. run busybox vi, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.


  3. 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.







share|improve this answer























    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',
    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
    });


    }
    });














    draft saved

    draft discarded


















    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








    up vote
    5
    down vote













    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:





    share|improve this answer



















    • 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.
      – Cee
      Dec 9 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 at 9:40

















    up vote
    5
    down vote













    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:





    share|improve this answer



















    • 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.
      – Cee
      Dec 9 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 at 9:40















    up vote
    5
    down vote










    up vote
    5
    down vote









    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:





    share|improve this answer














    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:






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 9 at 5:46

























    answered Dec 9 at 4:54









    karel

    56k11124142




    56k11124142








    • 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.
      – Cee
      Dec 9 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 at 9:40
















    • 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.
      – Cee
      Dec 9 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 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.
    – Cee
    Dec 9 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.
    – Cee
    Dec 9 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 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 at 9:40














    up vote
    4
    down vote













    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.




    1. vim.tiny as the other answer suggested.


    2. run busybox vi, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.


    3. 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.







    share|improve this answer



























      up vote
      4
      down vote













      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.




      1. vim.tiny as the other answer suggested.


      2. run busybox vi, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.


      3. 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.







      share|improve this answer

























        up vote
        4
        down vote










        up vote
        4
        down vote









        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.




        1. vim.tiny as the other answer suggested.


        2. run busybox vi, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.


        3. 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.







        share|improve this answer














        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.




        1. vim.tiny as the other answer suggested.


        2. run busybox vi, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.


        3. 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.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 10 at 6:58

























        answered Dec 10 at 6:29









        Alvin Liang

        4917




        4917






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Morgemoulin

            Scott Moir

            Souastre