14 ms·
GNU nano is my editor of choice
- jtchang 5y agoNano feels a lot like windows notepad. Still my favorite editor and beginner friendly (as far as unix editors go).
- bigdict 5y agoHow do you navigate text in nano?
- pphysch 5y agoSlowly
- 28175022 5y agoAs much as we all enjoy low effort posts, there are a number of shortcuts to move around, as well as the general "find" option. https://www.nano-editor.org/dist/latest/cheatsheet.html https://www.nano-editor.org/dist/latest/cheatsheet.html
- pphysch 5y agoIf we're gonna learn a stack of key combo shortcuts, why not go with a editor that was designed with that in mind (i.e. key combos organized into a hierarchy rather than a huge flat mess)?
- gravypod 5y agoNote: I'm not saying nano is perfect but these are some nice features. The key bindings are at the bottom of the screen. Example: https://imgur.com/tFVNFc4 https://imgur.com/tFVNFc4 ^ is CNTRL. > why not go with a editor that was designed with that in mind (i.e. key combos organized into a hierarchy rather than a huge flat mess)? Nano has a tree-like structure. There are a a few root commands for common things but a menu like "replace" has these options shown: https://imgur.com/5IKRyeC https://imgur.com/5IKRyeC In this screen you can see "M" which means the ALT key. These names (^, M) are not ideal but they have their roots in the originally common teletype names (control, meta). It's not the best but it's easy once you remember those two things since you need to remember nothing else. An important note about these menus: they remember your previous insert. If you click the up arrow key you can go back in time to previous searches just like your terminal. It's how I could say that 4 searches ago I looked for `affinity_test`. Also, nano supports all of the standard navigation you will be used to. Things like: - Page Up/down: Go up/down an entire page of text. - Arrows: Navigate text one character/line at a time. - Scroll Wheel: Move cursor up/down for each input. - ctl + left/right arrow: Move one "word". - Home / End keys: beginning and end of line. So, the things you already know from all other programs directly apply. The things that aren't the same that you will use are at the bottom of the screen or behind a "CNTRL+G" menu that is at the bottom of the screen. All for giving up ~3 vertical lines of text. I just checked and at my default font size I can fit 57 lines on my monitor so I'm giving up 5% of my screen so anyone, regardless of skill level, can sit down at my computer and know how to operate the text editor.
- gruez 5y ago* arrow keys * pg up/down * find (^W) * go to line (^_) the first two are standard across applications, and the last two are in the help menu that shows up by default.
- bruce343434 5y ago> (^_) Confusingly, this is actually not a ctrl (^) shortcut at all. It is alt-g.
- tpoacher 5y agono, it is control underscore alt g is another binding for the same.
- rahimnathwani 5y agoNot confusing. ^_ is ctrl and underscore underscore is shift and minus So ^_ is ctrl and shift and minus. On my computer, doing ctrl+shift+- brings up 'Enter line number, ...'.
- RandallBrown 5y agoctrl + underscore is go to line, column for me Am I misunderstanding what you mean?
- techrat 5y agoHell, even the mouse scroll wheel works.
- Palomides 5y agolesser known nano fact: with -m it supports mouse clicks for cursor movement
- budafish 5y agoI've been a really big fan of Micro[1]. A single binary with excellent out of the box features. Mouse mode, syntax highlighting, tabs etc [1] https://github.com/zyedidia/micro https://github.com/zyedidia/micro
- timothylaurent 5y agobut are there vim keybindings?
- budafish 5y agoFrom the faq. Does micro support Vi keybindings? Currently micro does not have any sort of Vim emulation. However, this is the next major feature that is planned, so stay tuned.
- type0 5y agoIt is great. It should have been the default editor in some Linux distros that settled on nano!
- rickstanley 5y agoThe only thing that keeps me from using it as my daily editor is the clipboard functionality in WSL (using Windows Terminal). The first problem was clipboard not working at all, after some updates and tweaks (aliasing xclip to a custom bash script) the clipboard worked. The second problem is yet to be resolved: copy/cut and paste ignores new lines, I haven't found a solution ... Any advice is appreciated!
- 5y ago
- kzrdude 5y agoWhy is nano the favourite editor? What's the upsides and why does it stay the favourite?
- andrewzah 5y agoIt's very simple. It behaves like users would expect something like Word to behave. Editors like Vim have a learning curve because they introduce the concept of modal editing which takes some getting used to.
- kzrdude 5y agoI can't even properly explain why I like Vim. I guess it's the same way, by habit. When in a non-modal editor I'm just very clumsy. Trying to type commands but inserting text instead by mistake and so on.
- ctur 5y agoThe thesis of this post is roughly that nano, when configured, is enough of an editor for the author. Which is totally fine! People should be happy with their tools and not feel pressured by popularity to use what others use (vim, emacs being prime competitors in this case). Alas, nano (and pico before it) have a certain stigma among more "experienced" Unix users that more or less boils down to gatekeeping and snobbery. Which is a shame. That said... it is worth considering that learning tools like editors is an investment in one's self and pushing through preference to genuinely try to use what others find value in can, if nothing else, help you better understand what you value and adjust your tooling to fit (much like the author adjusted Nano to be more like vim). That's a pretty nuanced distinction though and I am glad that the author feels comfortable owning their preference and not feeling pressured by peers to conform to more "acceptable" choices while still having tried and learned from them.
- relax88 5y agoIt’s not really gatekeeping or snobbery to say that knowing vim is more useful simply because I can log into any Linux machine on the planet and edit a text file without having to install an editor.
- hkt 5y agoIs installing an editor really such a hardship?
- dllthomas 5y agoUsually not, sometimes very much so.
- yakubin 5y agoIn "linux embedded", absolutely. You take what's there. At some point I even had a debugging session through TeamViewer connected to a Windows machine which had Terraterm open connected to serial port of a linux box. Unfortunately, there was a lot of spam on the serial port, so even using vi was impossible, because the screen got garbled pretty fast. So I printed the files with cat, worked out a set of sed commands to get those files to the desired state and typed them back in. Crazy. But real. (Add to that communicating with a guy on-site over notepad.exe. Mr. Robot vibes.)
- hprotagonist 5y agothere are far worse choices. for quick stuff, i either emacs -q or nano more or less interchangably, and in my larval stage i lived in nano (and pine!) for many years happily enough. These days, i find that my movement key memory will betray me in nano at the worst time(s), so i tend to stick with emacs -q -nw for light-and-fast stuff, but when that's annoying to obtain, i'll happily fall back and think more carefully about my keystrokes.
- Jtsummers 5y agoemacs --daemon Then connect with emacsclient. You can also name the daemon which lets you have specific configurations for specific tasks. At that point, launching emacs for quick stuff is very fast.
- hprotagonist 5y agooh, i know. sometimes i want barebones as well.
- rubyist5eva 5y agono matter what you editor you use, set EDITOR to whatever you want, then when you want to edit files as root do `sudo -e /path/to/file` thanks me later
- _def 5y agoThe more you know. Thanks!
- darnir 5y agoOr even simpler use `sudoedit /path/to/file/`
- rubyist5eva 5y agosudo -e is less characters to type tho, though I guess you can do sudoe<TAB> and complete it...choices, choices
- throaway46546 5y agoHow is it better than `sudo vi /path/to/file`?
- dllthomas 5y ago`sudo vi` runs vi as root, which means 1) it won't have your users configurations, and 2) it's probably way the hell over-privileged for what you are trying to do. `sudoedit` (and equivalently `sudo -e`) makes a copy of the file that you can edit and then copies it back as root iff it's changed.
- throaway46546 5y agoThanks!
- _def 5y agonano was my cli editor of choice because I was overwhelmed by vim. For years I felt subpar and thought that I should learn using vim. I'm using vim for some years now but I don't really make much use of it's features, maybe an occasional cut and paste, which probably can easily be done with nano too.
- bspammer 5y agoAn easy (and fun) way to get better at vim and learn some of its features is to play vimgolf [1]. After you submit you can see solutions which are slightly better than yours, and run them through to see what each command does. [1] http://www.vimgolf.com http://www.vimgolf.com
- dllthomas 5y agohttps://vim-adventures.com/ https://vim-adventures.com/ is a fun way to flesh out your vim understanding. I've only been through the free bit and balked at the price tag, but very much enjoyed what I played and if I weren't already well versed in vim it would probably be well worth it to continue.
- huachimingo 5y agoDont forget vimtutor, also available in CLI. You learn vi(m) by steps using a quick manual.
- RandallBrown 5y agoMy dirty software engineering secret is that I don't know how to use vim. Like at all. I've been a developer for over 10 years at this point. The only thing I remember is that some combo of hitting the escape key and typing :wq gets me out of it. When I get a new machine I have to immediately change the default editor for git so I don't get totally stuck if I need to edit a commit message. I also use a GUI text editor for git... I really appreciate that nano has it's shortcuts written on the screen for me to use. It's my CLI text editor of choice for that reason.
- stjohnswarts 5y agoI was shoved in the pool with vim, I don't think it took me more than a couple days to get proficient with it and by the end of the week I didn't want to use anything else. Of course I had a fairly large coding project that I was working on. Of course I'm still learning little bits here and there :)
- Guid_NewGuid 5y agoSo I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely being given contextual information about the symbols you are working with (type, fields, methods, etc) is helpful? Perhaps there are languages or domains that are better suited? I can see that there's not much difference between an ide and editor for new languages but why do people prefer text editing and prioritize typing speed where IDEs exist? Does an editor create a sort of flow or deeper state since lack of tooling requires deeper mental context?
- haolez 5y agoIt's not about the editor: it's about the combination of other tools. Simple text editors invite you to use specific tools for specific tasks that an IDE aggregates and configures for you. An IDE is usually good enough, but for some environments, having total control of your tooling can give you big productivity boosts. And not every software depends upon lines and lines of code. Sometimes, you will write useful software that's only a couple hundred lines, but required you hundreds of hours thinking about the problem :)
- kevin_thibedeau 5y agoThe advantage is you don't become dependent on an IDE. Ever seen someone who can't write anything without all the IDE aids to fill in code for them?
- crispyalmond 5y agoI fully agree to an extent. Some APIs (e.g. Android) are huge and a pain to type in Java without some sort of completion. Maybe I'm just lazy or used to C, but Java makes having an IDE almost essential.
- jenscow 5y agoAh, I don't know... I don't depend on an IDE, they just make things much quicker and easier for me. And let's say I do depend on one.. it's not like I'm going to be dropped at a computer where I'm not allowed to use an IDE... but it would just take a day to adjust. For me, anyway.
- hughrr 5y agoQuite impressive. I actually don’t use nano though only because it’s not always there. I learned a long time to pick a narrow subset of ubiquitous tools to know really well, compose those and leave it at that. If I’m dumped in single user mode somewhere with no network, or on a system I don’t have the ability to install packages on, a usable vi implementation is always available. Going back a couple of decades a colleague was stuck on a Solaris box because he needed pico installed and Miss root was off sick. He learned vi that day. Incidentally I used to embarrassingly suck at vi until I completely hosed a couple of systems.
- davidkunz 5y ago>Hopefully this post demonstrates that nano is a quite capable editor in its own right. This post showed how to add a slightly enhanced minibar, remove the help and add syntax highlighting. It would be more important for me how to quickly navigate text.
- tomc1985 5y agoI've always liked nano, as it seemed closest in functionality to the text editors I used to work with in DOS (which set the UI standard that I measure interacting with console applications from) I wasn't aware people have added so much extra functionality to it. Nowadays I turn to vim but I will give nano a closer look
- jrockway 5y ago> The vim vs emacs flame war I doubt that there is any ongoing vim vs. emacs flamewar. Most people are probably arguing about VSCode vs. JetBrains these days. My impression as an Emacs user is that if someone says they use Vim, I think "hey, one of us". (nano I guess falls into that category, but I bet nano users are missing out on some timesaving innovations from the last few years, and nothing frustrates me more than people that have inefficient workflows because they eschew learning new things.) > Emacs Lisp is not really a particularly fun language to use simply for customizing the behavior of an editor — as they say, Emacs is a nice operating system, it just needs a good editor. I doubt one would like an OS where the SDK only supports a language they don't like. I know this was an attempt to reuse a quote, but I think they actually like the editor and dislike the OS, which is the opposite of what sentiment that quote conveys. (Here's another tired meme: "eighty megs and constantly swapping".) Emacs Lisp is actually very interesting in its staying power. It was designed from the ground up to write programs that the programmer is in front of all day, and that's very different than the enterprise / systems programming use cases that modern languages optimize for (where tens of thousands of copies of your program need to run unattended). The API and tooling matter more than the actual programming language, and I've looked around at other editor platforms and they're just not there yet. You can't C-M-x to run the line of code you're currently editing. You have to write HTML and CSS to supply preferences to your plugin. It's so weird to me how actively extension-hostile the popular editors are these days, and how hard they make manipulating the contents of the editor.
- garciasn 5y agoI wish vim had the option for CTRL-K/U behavior rather than having to do the unintuitive (to me) visual block.
- maddyboo 5y agoI think you're referring to multiple cursors? Visual-Multi [0] is an amazing Vim plugin for this with advanced features like searching by regex, alignment by regex, transposition, duplication, auto-numbering, and more. You can ignore the advanced features at first, it's very intuitive: just `C-n` to find the next occurrence of the word or `\\a` to find all, and then whatever editing operation you want like `cfoobar<esc>`. Or to just get another cursor on the line below, `C-<down>`. [0]: https://github.com/mg979/vim-visual-multi https://github.com/mg979/vim-visual-multi
- markus_zhang 5y agoI think I'm getting enough of these editor posts. It's just a tool and I'd rather see more language war posts.
- awelxtr 5y agoAren't languages just tools, too?
- markus_zhang 5y agoYeah, that's the point. Since they are both tools, I'd rather see more tool war posts regarding languages. At least people will quickly deviate to language theory or quirks in languages so that we can learn a lot.
- mad_ned 5y agoi spent a good long time writing code in emacs but our current project uses an IDE, and I found I could be pretty productive in it and learned to leverage its advantages. But I could not live without a solid text editor, and still use emacs for texty stuff, like config and log files and such (even though in theory i could do that in the IDE as well) But as a result, a lot of the cool stuff I had set up in emacs never gets used anymore. not even sure how to run many of the .el's anymore i have in my .emacs tbh. I could probably get by just fine with nano but run full emacs just out of habit.
- theonemind 5y agoOutside of corner cases, most of the things that become the focus of tech religious wars make fairly marginal difference compared to other factors, like proper design, testing, documentation, etc. (Corner cases do exist, however; no one wants to write a compiler in brainfuck). I definitely tend toward a view of do the work, boring stuff included, in whatever text editor, IDE, and language floats your boat.
- chaoticmass 5y agoI've been using mcedit (the editor component of midnight commander) for about 15 years now as my primary editor for coding.
- guyromm 5y agohttps://www.gnu.org/fun/jokes/ed-msg.en.html https://www.gnu.org/fun/jokes/ed-msg.en.html
- tonyfader 5y agoplease, just, no.
- thayne 5y ago> it provides all of the features from vim I would want anyway, but in a modeless format > vim-like functionality with modeless editing > nano is a quite capable editor in its own right but the only features that are mentioned are syntax highlighting and hiding the help text. Looking at the man pages for nano, it _is_ a lot more capable than I had previously though (though not as capable as vim or emacs), but the author doesn't really go into that.
- filmgirlcw 5y agoNano (or pico) is great for very small, quick edits. I often use it when setting up a VPS for the first time before configuring my editor’s remote SSH exten B sion (or in the past, installing rmate). I wouldn’t personally use it for more than just a quick change, but to each their own!
- tpoacher 5y agoIt's worth pointing out that many distros ship with a positively prehistoric version of nano (i.e. v2.9), whereas the latest version is actually lightyears better. I agree with the author completely. As for the "yes but vim keystrokes" apologists, honestly I have yet to find something truly important I can do with significantly less keystrokes in vim. (especially if you factor in programmability and macros).
- 6AA4FD 5y agoDo you not use motions? I use stuff like `dfXa` where X is the character I want to delete to, for example. I could do 23x, d6w, or d/foo<CR>, depending on the information I have, either way this is light-years faster than what I can do without motions. Macros and programmability are great, but they are more for boilerplate stuff than just one-off mangling text fast. You can also hit the arrow keys in sed mode to reuse old commands, a lot more painless than recording and storing a macro in my imagination.
- tpoacher 5y agoMy claim is not that motions and the like are not useful constructs. My claim is that most functionality of this sort, whose use-case is not contrived or trivial, has equivalently low-keystroke solutions in nano; these often tend to be more intuitive as well, and sometimes require even less keystrokes/keyboardtime than vim (especially considering the whole enter/exit edit mode extra keystroke, which tends to be conveniently absent in keystroke wars). E.g. dfXa -> Mark, Search, X + Enter, Delete d/foo -> Mark, Search, foo + Enter, Delete d6w -> Mark, EndOfWord x 6, Delete (or store 'EndOfWord Delete' as a temp macro, and use a predefined repetition command) To me, '23x' (and to some extent even d6w) is an example of a contrived use-case; while you can come up with ways to minimize keystrokes for such a scenario in nano too, in reality if you have text or code where you need to find the 23rd instance of a character EXACTLY, there's something REALLY wrong with your code/text, in which case '23x' is the least of your problems. In all non-trivial/non-contrived cases, if you need to look up something 23 times, you're probably going to want to walk through those instances as well, and the act of 'counting first then executing the incantation' is likely to cost you far more time spent on the keyboard than what is saved by minimizing keystrokes. And if you really, really need something as arcane as that, and use it often, then you can write a relevant macro easily. No need to bother regular users with that bloat. Somebody else here already mentioned the ^U^U^U^U^U^K vs y5p comparison: this is a prime example of the above philosophy, and I agree. Keystrokes are saved at the cost of actual time spent on the keyboard. At the end of the day, I'd much rather spend 5 seconds on 10 keystrokes, than 10 seconds on 5 keystrokes. And in practice, most people would use a selection instead anyway, resulting in more keystrokes in vim compared to nano to begin with.
- riffic 5y agomore power to ya! that's what's wonderful about general-purpose computing - there are many choices and whatever works for you to get the job done is all that matters.
- lcnmrn 5y ago# highlighting for all languages include /usr/share/nano/*.nanorc set autoindent set minibar set morespace set historylog set linenumbers set softwrap set tabsize 4 set tabstospaces Now you got a full featured IDE.
- pauldirac137 5y agoNano is OK, I guess, but it's a bit bloated. Now ed(1) -- that's an editor!
- matthewmorgan 5y agoMay a 'gatekeeper' give me a nod in the right direction
- bww 5y agoCertainly people should use the tools they like and are comfortable with. That said, I would suggest that there's a limit to this "whatever you like is fine" logic. If you were building a birdhouse and decided you liked hammering in nails with the broad side of a wrench, yeah, ok, I guess that's your business and ultimately you can hammer those nails how you want. But if you saw a professional carpenter hammering in nails with a wrench, you'd have to seriously question whether you hired the right carpenter.
- subjectsigma 5y agoI'm all for choice but... The author is, of course, free to do whatever they like, and I'm free to say that using nano is almost certainly not an optimal workflow. The beautiful irony of this post - some of the most common commands in nano (C-a, C-e, C-f, C-b, C-n, C-p, M-g, C-k, and more!) are taken from Emacs. If the author uses nano and bash (readline) to do work they are 80% of the way to using Emacs, the editor they supposedly don't like. And all the other commands are easily rebound to work like nano. The author could be working in an environment that's nearly identical to their current one, but that also has support for: * A toolbar, scrollbars, pulldown menus, etc. * Displaying multiple files side-by-side * LSP * Automatic refactoring/type-checking/code formatting/etc. * Advanced movement (jump to definition) * Mouse-over to see documentation * Macros/multiple cursors/batch renaming * Automatically detect missing dependencies/namespace errors/etc. * Calling external programs & handling their output * and more... If you write code like this I can only assume you either work like I did in high school when I used nano (alone, on small projects, with only specific languages, spending 95% of my time debugging) or that you work at 1/10th the speed of a typical programmer.
- peterburkimsher 5y agoObligatory XKCD: https://xkcd.com/378/ https://xkcd.com/378/ "nano? Real programmers use emacs." "Hey. Real programmers use vim." Personally I use TextWrangler (BBEdit) for fun, and VS Code at work. I know how to exit vi though! "Q. How do you generate a random string? A. Put a Windows user in front of vi editor and ask him to exit." https://www.reddit.com/r/ProgrammerHumor/comments/72y7lr/q_how_do_you_generate_a_random_string/ https://www.reddit.com/r/ProgrammerHumor/comments/72y7lr/q_h...
- kstrauser 5y agoDo you write code in BBEdit? VS Code feels way more capable, at least at first glance, but I know BBEdit fans have a lot of love for it. I ask because I'm growing a little tired of VS Code. It works nicely, but it never feels like a native editor. BBEdit, and Panic's Nova, feel like I'm actually using a Mac. I'm trying to decide if either of those are better than (or at least as good as) VS Code.
- peterburkimsher 5y agoYes, I write my own code in BBEdit. When there's no collaboration needed, it's more than adequate, and the Mac integration (AppleScript API) is great. VS Code is good for git blame integrations, finding references to functions in a deeply nested project, and using extensions. It's an IDE, not just a text editor. So I suppose it depends on your use case: if you're the only developer, a text editor is enough. If you're working in a larger team, an IDE can be helpful.
- kstrauser 5y agoThanks! That's the kind of perspective I was looking for.
- tusharsadhwani 5y agoTried it, most people end up putting vim in background with Ctrl+Z instead of closing it.
- etaioinshrdlu 5y agoNow if I could have Language Server Protocol, jump-to-definition, built-in refactoring, I might give it a try.
- deleted 5y ago[deleted]
- w0mbat 5y agoWhen I started, the account setup process at Google was done with a room full of new hires on Linux machines, and assumed knowledge of vi. I was like "WTF?" because I'm a Mac programmer and my plain text editor is BBEdit or an IDE. If I have to edit a file in Terminal I'll use nano. The session leader thought I was weird, but I quit vi (eventually), used nano and it worked fine. I still don't know how to use vi or Emacs.
- throwaway888abc 5y agoRelated Modded GNU Nano using ycmd code completion and IntelliSense. https://github.com/orsonteodoro/nano-ycmd https://github.com/orsonteodoro/nano-ycmd Long live nano
- drvdevd 5y agoFor me, nowadays there is only one thing that really sets text editors apart and that is: what is the largest file I can open with that editor?
- zamadatix 5y agoMan you must love ed!
- tored 5y agoNano is a great little editor, however one thing I have not figured out yet is to achieve a true cross platform .nanorc file when dealing with paths, windows vs posix, things like include directives and backup dir.
- 1vuio0pswjnm7 5y agoTheres another GNU "pico-like" editor called moe. Its written by the maintainer of ed and some other GNU projects. Not much written about it.
- MrWiffles 5y agoI admire the author's straight-up owning her choice here, in spite of the elitism that's long fueled the whole "lol you use nano!?" douchebaggery. Perhaps worth a chuckle: I once interviewed on-site somewhere, panelist-style format with "the team" hitting me with questions all around. One of them asked about my preferred editor. I mentioned some GUI editor I was using back then (don't remember now, it's changed over the years). He laughed and said something like, "what, you!? YOU use a GUI editor, not vim!? C'mon man! You're better than that!" So I fired right back at him, jokingly: "Dude, it's an editor. Not a religion. I ain't down the the jihad, bro!" Fact is, you can be productive in just about any editor as long as you know how to use it right. If vim/emacs is your jam, fantastic, you have fun with that. You can brag about "productivity" all you want, but there are - demonstrably - other people out there who don't do it your way and they're equally productive, and in some cases better. Productivity isn't measured in keystrokes per second. What matters is what gets DONE. The elitist attitude that anyone not using emacs/vim is "fail" or "noob" is just plain stupid. All that does is demonstrate that you value your own ego over the success of your team, and that you might derive pleasure from putting other people down, a significant mental health problem. It also forces people to raise their guard around you, and erodes their trust in you, especially if that attitude is reinforced in other ways. I'm not saying you can't joke around with people, and it would be short-sighted and foolish to draw any final or major conclusions on ONE thing like this alone, but if someone sincerely pulls this elitist BS on you, you'd be a fool not to raise your guard, to some degree, around that person from then on.
- ineedasername 5y agoYep, same here. I graduate from Pico on a Vax system to nano on Linux for console editing, with the exception of Ted w/FOCUS since it was a somewhat integrated development environment. Of course the limitations mean I still had to use things like sed & awk frequently for things that weren't possible or were much slower in nano. That's for relatively small uses though. I use an IDE for most coding. Any choice of tool is always about trade-offs.
- scarmig 5y agoed is the standard text editor.
- Thetawaves 5y agoThe thing that is missing from this article and the comments is that vi(m) is available on every unix machine made in the last 30 years. Knowing it well gives an admin a dependable tool that is ubiquitous. And once you know vim, why would you choose anything else?
- kazinator 5y agoIssues. 1. When I google for "nano ctags", I get one hit: someone's 2011-dated blog about their custom "nanotag.sh" which searches through the tags file and then runs the editor to bring up the right line of the right file, which is kind of like walking a quarter mile to get water from a well instead of having running water. Maybe Ariadne uses nothing but cscope for naviating through code bases? Cscope is a bit crippling; you use it as a kind of dashboard for searches to which you have to return to start another search. If you find occurrences of an identifier, you have to return to cscope to navigate through that list. 2. I don't see any documented support for running a compile job out of Nano such that it gathers the errors and lets you move around in them for fixing. 3. No mention of "lisp" in the manual. How is the Lisp auto-indent and such? Ariadne talks about getting the editor to "look" like Vim, but I don't see the point. What does that mean? Vim looks more or less like ... a section of your file. That's what you see. Plus some syntax coloring; is that the point? Looks are only skin-deep; the semantics is invisible from just looking at the editor screen. She presents a falsely incomplete set alternatives ("false trichotomy"): it's either Vim, Emacs or Nano. It has to be Nano because Vim is modal and Emacs Lisp is yucky (complete with a meme about Emacs being an OS with a lousy editor) (so why would the author care that there appears to be no Lisp editing support in Nano, right?) But, say, about good old Joe? Joe has ctags support and stepping through compiler errors and such. It's substantially more suitable for programming than Nano. By my estimation, Joe could be the editor the author actually wants. Another unexplored possibility is Jed.
- burnte 5y agoI prefer nano as well. Does everything I need in a command line editor.
- rascul 5y agoexport EDITOR=ed export VISUAL='dosbox C:\DOS\EDIT.COM'
- yung_steezy 5y agoI always recommend nano to juniors if they need to edit config files on their local environment. Being able to use a CLI editor is an essential skill but there is no need to make it complicated.
- fatpixel 5y agonano is my editor of choice too!!!* *when editing in a terminal session.
- rurban 5y agojoe is still better. nano caught up lately, but joe ditto