Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Originally Posted by 273
NO! They're nowhere near as good. Don't use trash like Vi and EMACS -- they're "free software" and, so, are useless and pointless. Use only Microsoft approved software.
Quote:
Originally posted by Sycamorex
Finally somebody talks sense
There should be really no significant differences and certainly nothing worth worrying over. Install and use it and determine if you like it.
The reasons why I'm a huge user of emacs are because I'm a good typist, it gives me a user interface which I like, and whatever changes have occurred to it over the years haven't dramatically changed the editor insofar as how I use it and my experience with it.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by killertux
You two are joking .Aren't you ?
Sorry, yes, joking. I'd say that feature-wise nano is better than notepad. Vi is hugely more flexible and emacs has been jokingly refered to as an operating system in itself.
I recommend ed -- it's the standard text editor...
Quote:
Originally Posted by NotionCommotion
So, they are all the same as Microsoft Notepad?
I worked on DOS back when it still only had edlin which only allowed edit of one line at a time. If you screwed up on line 35 you had start all over on line 1. Once DOS 5.0 came with "Edit" as a full screen editor my life was much easier. Notepad is an improvement on "Edit" so having lived through edlin hell I'll not talk bad about Notepad although these days I use (G)VIM on M$ Windows as a preferred editor.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Notepad works, I'll give it that, it's also (generally speaking) installed on every Windows PC by default. I have used it for years and still do for note taking and stripping formating when pasting text. But, when I used to write batch file, kix scripts and, later, VBScript I used either Notepad++ or Notepad2 (don't recall which where and when nor which I preferred). I know a lot of people don't like format highlighting and line numbering but for me they made life so much easier.
Thanks, typing that has reminded me I have still not aliased nano to show line numbers and that I really ought to play with vi some more. ^C^Zquit!!bye...
I know a lot of people don't like format highlighting and line numbering but for me they made life so much easier.
I could take or leave line numbering on every line, but who doesn't like syntax highlighting? The only time it bothers me is when it screws up, which vi used to do a lot with comments and quotes, but I haven't seen it lately.
What really bothers me though is vi's auto-indent "feature" which doesn't differentiate between typed text and pasted text. I hate having to run ":set paste" every time I want to paste something into the file and don't want it tabbed 250 columns over by the last line. I always just end up turning off auto-indenting in vi, which then becomes a pain when I DO want it to indent during actual development.
So as was mentioned earlier, I also typically use vi for checking logs and quick touch-ups on codes, and emacs for more serious development.
I don't use Notepad in Windows because it doesn't recognize Unix line endings. Wordpad does though. I usually just use Notepad++ when I have a choice.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I find line numbering useful for the inevitable "Syntax error on line ##" type situations. Even with config files I find that useful but for scripts it saved even more time.
I've a feeling the syntax highlighting issues were on of the things which put me off vi with the fact it stopped behaving over SSH leading to my use of nano.
I find line numbering useful for the inevitable "Syntax error on line ##" type situations. Even with config files I find that useful but for scripts it saved even more time.
I just use :num to jump straight to the line number of interest, don't need it printed out on every line as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.