Working with plain vi not vim












1














I was trying to learn working with vi, the plain 'vi' that ships with most of the operating system, but that 'vi' seems to be missing lot of features.

When I tried to excute ":ls", it gave me error E319: Sorry, the command is not available in this version.



Similarly for most of commands, When I tried :version, it returned Small version without GUI .

For now I just want to learn working with "vi" not "vim".




  • So any nice place where I can learn from(I found most tutorials are for vim).

  • Any easy ways to extend functionality of "vi" not "vim"

  • Any tips if I'm going on wrong path










share|improve this question






















  • and when tried to load 5 files in "vi", they were not even working, ":bn" was also not available, any pointer on that . !
    – murarisumit
    Oct 14 '14 at 3:47










  • Mind to share where you got the plain vi? I know there exist nvi , elvis and some other clones, but which one you are using,? And where can I get it too?
    – Sergiy Kolodyazhnyy
    Oct 14 '14 at 4:05










  • I'm using the one which come with OS, and I'm using wheezy ! No extra "sudo apt-get install vim"
    – murarisumit
    Oct 14 '14 at 4:21


















1














I was trying to learn working with vi, the plain 'vi' that ships with most of the operating system, but that 'vi' seems to be missing lot of features.

When I tried to excute ":ls", it gave me error E319: Sorry, the command is not available in this version.



Similarly for most of commands, When I tried :version, it returned Small version without GUI .

For now I just want to learn working with "vi" not "vim".




  • So any nice place where I can learn from(I found most tutorials are for vim).

  • Any easy ways to extend functionality of "vi" not "vim"

  • Any tips if I'm going on wrong path










share|improve this question






















  • and when tried to load 5 files in "vi", they were not even working, ":bn" was also not available, any pointer on that . !
    – murarisumit
    Oct 14 '14 at 3:47










  • Mind to share where you got the plain vi? I know there exist nvi , elvis and some other clones, but which one you are using,? And where can I get it too?
    – Sergiy Kolodyazhnyy
    Oct 14 '14 at 4:05










  • I'm using the one which come with OS, and I'm using wheezy ! No extra "sudo apt-get install vim"
    – murarisumit
    Oct 14 '14 at 4:21
















1












1








1







I was trying to learn working with vi, the plain 'vi' that ships with most of the operating system, but that 'vi' seems to be missing lot of features.

When I tried to excute ":ls", it gave me error E319: Sorry, the command is not available in this version.



Similarly for most of commands, When I tried :version, it returned Small version without GUI .

For now I just want to learn working with "vi" not "vim".




  • So any nice place where I can learn from(I found most tutorials are for vim).

  • Any easy ways to extend functionality of "vi" not "vim"

  • Any tips if I'm going on wrong path










share|improve this question













I was trying to learn working with vi, the plain 'vi' that ships with most of the operating system, but that 'vi' seems to be missing lot of features.

When I tried to excute ":ls", it gave me error E319: Sorry, the command is not available in this version.



Similarly for most of commands, When I tried :version, it returned Small version without GUI .

For now I just want to learn working with "vi" not "vim".




  • So any nice place where I can learn from(I found most tutorials are for vim).

  • Any easy ways to extend functionality of "vi" not "vim"

  • Any tips if I'm going on wrong path







command-line server vi






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 14 '14 at 3:46









murarisumit

320112




320112












  • and when tried to load 5 files in "vi", they were not even working, ":bn" was also not available, any pointer on that . !
    – murarisumit
    Oct 14 '14 at 3:47










  • Mind to share where you got the plain vi? I know there exist nvi , elvis and some other clones, but which one you are using,? And where can I get it too?
    – Sergiy Kolodyazhnyy
    Oct 14 '14 at 4:05










  • I'm using the one which come with OS, and I'm using wheezy ! No extra "sudo apt-get install vim"
    – murarisumit
    Oct 14 '14 at 4:21




















  • and when tried to load 5 files in "vi", they were not even working, ":bn" was also not available, any pointer on that . !
    – murarisumit
    Oct 14 '14 at 3:47










  • Mind to share where you got the plain vi? I know there exist nvi , elvis and some other clones, but which one you are using,? And where can I get it too?
    – Sergiy Kolodyazhnyy
    Oct 14 '14 at 4:05










  • I'm using the one which come with OS, and I'm using wheezy ! No extra "sudo apt-get install vim"
    – murarisumit
    Oct 14 '14 at 4:21


















and when tried to load 5 files in "vi", they were not even working, ":bn" was also not available, any pointer on that . !
– murarisumit
Oct 14 '14 at 3:47




and when tried to load 5 files in "vi", they were not even working, ":bn" was also not available, any pointer on that . !
– murarisumit
Oct 14 '14 at 3:47












Mind to share where you got the plain vi? I know there exist nvi , elvis and some other clones, but which one you are using,? And where can I get it too?
– Sergiy Kolodyazhnyy
Oct 14 '14 at 4:05




Mind to share where you got the plain vi? I know there exist nvi , elvis and some other clones, but which one you are using,? And where can I get it too?
– Sergiy Kolodyazhnyy
Oct 14 '14 at 4:05












I'm using the one which come with OS, and I'm using wheezy ! No extra "sudo apt-get install vim"
– murarisumit
Oct 14 '14 at 4:21






I'm using the one which come with OS, and I'm using wheezy ! No extra "sudo apt-get install vim"
– murarisumit
Oct 14 '14 at 4:21












1 Answer
1






active

oldest

votes


















0














The "vi" command that comes with Ubuntu is actually just linked to vim, with options that disable several of its features, putting it in a sort of "vi compatibility mode", the same as using the :set compatible command.



The original "vi" itself is ancient, and has a license that would not allow it to be distributed with Ubuntu. It has a number of spiritual successors in the form of open source editors that emulate it, but the most popular of these is vim, followed by nvi and elvis.




  • vim is the most popular successor to vi, and adds many helpful features, many which you are used to and probably think of as being part of vi, but in reality are features added to vim. vim aims for improved usability.


  • nvi is another editor that attempts to more closely emulate the original vi, but has since gone on to add many improvements.


  • elvis is another editor that attempts to closely emulate the original vi but add extra features. elvis is the vi-like editor used by Slackware Linux.


  • busybox is a multi-purpose executable that includes a vi-like editor, but also includes a number of other command line tools. It is designed for embedded systems and devices with very low memory or storage space. Its vi-like editor is a vi clone optimised for very low size and memory use.


  • neovim is a fork of vim intended to implement some features vim is seen to lack. It's growing in popularity but is relatively new and it's hard to tell if distributions will ever replace vim with neovim as a default.



The reasons you're having problems is that you're trying to use vim commands in vim's "vi compatibility mode" which disables these features.



I don't see any value in limiting yourself to just the commands that were in the original vi, as that editor is not really relevant anymore and you may as well benefit from the increased usability and functionality of vim or one of the other clones.






share|improve this answer























  • I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
    – murarisumit
    Oct 14 '14 at 4:23










  • vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
    – thomasrutter
    Oct 14 '14 at 5:28










  • I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
    – murarisumit
    Oct 14 '14 at 5:58











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f536814%2fworking-with-plain-vi-not-vim%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The "vi" command that comes with Ubuntu is actually just linked to vim, with options that disable several of its features, putting it in a sort of "vi compatibility mode", the same as using the :set compatible command.



The original "vi" itself is ancient, and has a license that would not allow it to be distributed with Ubuntu. It has a number of spiritual successors in the form of open source editors that emulate it, but the most popular of these is vim, followed by nvi and elvis.




  • vim is the most popular successor to vi, and adds many helpful features, many which you are used to and probably think of as being part of vi, but in reality are features added to vim. vim aims for improved usability.


  • nvi is another editor that attempts to more closely emulate the original vi, but has since gone on to add many improvements.


  • elvis is another editor that attempts to closely emulate the original vi but add extra features. elvis is the vi-like editor used by Slackware Linux.


  • busybox is a multi-purpose executable that includes a vi-like editor, but also includes a number of other command line tools. It is designed for embedded systems and devices with very low memory or storage space. Its vi-like editor is a vi clone optimised for very low size and memory use.


  • neovim is a fork of vim intended to implement some features vim is seen to lack. It's growing in popularity but is relatively new and it's hard to tell if distributions will ever replace vim with neovim as a default.



The reasons you're having problems is that you're trying to use vim commands in vim's "vi compatibility mode" which disables these features.



I don't see any value in limiting yourself to just the commands that were in the original vi, as that editor is not really relevant anymore and you may as well benefit from the increased usability and functionality of vim or one of the other clones.






share|improve this answer























  • I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
    – murarisumit
    Oct 14 '14 at 4:23










  • vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
    – thomasrutter
    Oct 14 '14 at 5:28










  • I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
    – murarisumit
    Oct 14 '14 at 5:58
















0














The "vi" command that comes with Ubuntu is actually just linked to vim, with options that disable several of its features, putting it in a sort of "vi compatibility mode", the same as using the :set compatible command.



The original "vi" itself is ancient, and has a license that would not allow it to be distributed with Ubuntu. It has a number of spiritual successors in the form of open source editors that emulate it, but the most popular of these is vim, followed by nvi and elvis.




  • vim is the most popular successor to vi, and adds many helpful features, many which you are used to and probably think of as being part of vi, but in reality are features added to vim. vim aims for improved usability.


  • nvi is another editor that attempts to more closely emulate the original vi, but has since gone on to add many improvements.


  • elvis is another editor that attempts to closely emulate the original vi but add extra features. elvis is the vi-like editor used by Slackware Linux.


  • busybox is a multi-purpose executable that includes a vi-like editor, but also includes a number of other command line tools. It is designed for embedded systems and devices with very low memory or storage space. Its vi-like editor is a vi clone optimised for very low size and memory use.


  • neovim is a fork of vim intended to implement some features vim is seen to lack. It's growing in popularity but is relatively new and it's hard to tell if distributions will ever replace vim with neovim as a default.



The reasons you're having problems is that you're trying to use vim commands in vim's "vi compatibility mode" which disables these features.



I don't see any value in limiting yourself to just the commands that were in the original vi, as that editor is not really relevant anymore and you may as well benefit from the increased usability and functionality of vim or one of the other clones.






share|improve this answer























  • I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
    – murarisumit
    Oct 14 '14 at 4:23










  • vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
    – thomasrutter
    Oct 14 '14 at 5:28










  • I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
    – murarisumit
    Oct 14 '14 at 5:58














0












0








0






The "vi" command that comes with Ubuntu is actually just linked to vim, with options that disable several of its features, putting it in a sort of "vi compatibility mode", the same as using the :set compatible command.



The original "vi" itself is ancient, and has a license that would not allow it to be distributed with Ubuntu. It has a number of spiritual successors in the form of open source editors that emulate it, but the most popular of these is vim, followed by nvi and elvis.




  • vim is the most popular successor to vi, and adds many helpful features, many which you are used to and probably think of as being part of vi, but in reality are features added to vim. vim aims for improved usability.


  • nvi is another editor that attempts to more closely emulate the original vi, but has since gone on to add many improvements.


  • elvis is another editor that attempts to closely emulate the original vi but add extra features. elvis is the vi-like editor used by Slackware Linux.


  • busybox is a multi-purpose executable that includes a vi-like editor, but also includes a number of other command line tools. It is designed for embedded systems and devices with very low memory or storage space. Its vi-like editor is a vi clone optimised for very low size and memory use.


  • neovim is a fork of vim intended to implement some features vim is seen to lack. It's growing in popularity but is relatively new and it's hard to tell if distributions will ever replace vim with neovim as a default.



The reasons you're having problems is that you're trying to use vim commands in vim's "vi compatibility mode" which disables these features.



I don't see any value in limiting yourself to just the commands that were in the original vi, as that editor is not really relevant anymore and you may as well benefit from the increased usability and functionality of vim or one of the other clones.






share|improve this answer














The "vi" command that comes with Ubuntu is actually just linked to vim, with options that disable several of its features, putting it in a sort of "vi compatibility mode", the same as using the :set compatible command.



The original "vi" itself is ancient, and has a license that would not allow it to be distributed with Ubuntu. It has a number of spiritual successors in the form of open source editors that emulate it, but the most popular of these is vim, followed by nvi and elvis.




  • vim is the most popular successor to vi, and adds many helpful features, many which you are used to and probably think of as being part of vi, but in reality are features added to vim. vim aims for improved usability.


  • nvi is another editor that attempts to more closely emulate the original vi, but has since gone on to add many improvements.


  • elvis is another editor that attempts to closely emulate the original vi but add extra features. elvis is the vi-like editor used by Slackware Linux.


  • busybox is a multi-purpose executable that includes a vi-like editor, but also includes a number of other command line tools. It is designed for embedded systems and devices with very low memory or storage space. Its vi-like editor is a vi clone optimised for very low size and memory use.


  • neovim is a fork of vim intended to implement some features vim is seen to lack. It's growing in popularity but is relatively new and it's hard to tell if distributions will ever replace vim with neovim as a default.



The reasons you're having problems is that you're trying to use vim commands in vim's "vi compatibility mode" which disables these features.



I don't see any value in limiting yourself to just the commands that were in the original vi, as that editor is not really relevant anymore and you may as well benefit from the increased usability and functionality of vim or one of the other clones.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 19 at 0:04

























answered Oct 14 '14 at 4:01









thomasrutter

26.4k46389




26.4k46389












  • I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
    – murarisumit
    Oct 14 '14 at 4:23










  • vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
    – thomasrutter
    Oct 14 '14 at 5:28










  • I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
    – murarisumit
    Oct 14 '14 at 5:58


















  • I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
    – murarisumit
    Oct 14 '14 at 4:23










  • vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
    – thomasrutter
    Oct 14 '14 at 5:28










  • I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
    – murarisumit
    Oct 14 '14 at 5:58
















I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
– murarisumit
Oct 14 '14 at 4:23




I was trying to learn editor which is working with all OS, without and extra download .! So I thought plain "vi" will be a good choice
– murarisumit
Oct 14 '14 at 4:23












vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
– thomasrutter
Oct 14 '14 at 5:28




vim is relatively universal these days, but yes, you can get pretty close to plain vi by using vim in compatible mode (which "vi" does by default in Ubuntu") or busybox vi.
– thomasrutter
Oct 14 '14 at 5:28












I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
– murarisumit
Oct 14 '14 at 5:58




I installed wheezy, but it wasn't there, but no probs I got few shortcuts like ":n" , ":args" intead of ":ls" and now I can use ":!command", that will take care of my problems, and I'll keep on exploring .. Thanx for your answer . !
– murarisumit
Oct 14 '14 at 5:58


















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%2f536814%2fworking-with-plain-vi-not-vim%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

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局