Are you on which team: vim, nano, micro, er ed for you terminal based text editor?
Changing from a distro that defaults to nano to another that defaults to vim... What to do other than installing nano and changing visudo?
106
Comments172Changing from a distro that defaults to nano to another that defaults to vim... What to do other than installing nano and changing visudo?
Team Vim. Because I learned the vim basics once 20 years ago and never bothered to learn after that. :D
I see you and raise straight vi.
That's what I was taught at my first tech internship. It's all they had on the UNIX system running the webserver in 1998.
I did write some web pages the pulled live data from the backend. I had the pleasure of writing them in C. I got the data binding to some kind of CORBA system using extern variables that were bound at compile time. All of the html (no js or css yet) was hand built and generated from the C code.
vi was the only editor on the system and there was no way to use arrow keys (the UNIX system didn't have them on the keyboard at all).
I also had the displeasure of building a backup system on a floppy where I had to write a bat script that could manually load a token ring driver, bind a SMB share, load Ghost backup software and backup the local hard drive at under 2mb (yay coax thicknet). The tool used to query and write through the hostname for the backup? Copycon. Fucking copycon in DOS. That showed me how a terrible (but working) tool could be to work with.
Unless an editor can do reasonable vim emulation, I can't take it seriously. You're welcome to use it, but I won't be able to get anything done in it quickly. The vi keys are too ground into my reflexes.
Vim sorely underrated. Great tools/hotkeys. Felt like a master pianist clacking away while the terminal went berserk until suddenly the 2 hour job was done in 20 minutes.
At the risk of restarting the Editor wars (https://en.wikipedia.org/wiki/Editor_war) from days of yore, I find it interesting that emacs wasn't even in your list of contenders. I hear it mentioned less frequently these days, so perhaps it's going by the wayside?
For the record, I'm a vi/vim user! I had the privilege of being taught to use it by an RFC-writing greybeard decades ago, and have used it without thinking ever since.
For those who find themselves on a machine with only vi/vim, or want to learn, here's a quick primer when editing a file (usually done by typing "vi foo.txt" in a shell) --
:q! ...Force quit vi (:q also works -- gentler!)
:wq! ...Save file and quit vi
i (then type characters) ...insert text at current position
A (then type characters) ...Insert at end of current line
G ...go to first character of last line in the file
/foo ...search for first occurrence of "foo" in the file (hit / again to find additional instances)
x ...Delete character under cursor
:56 ...Go to line 56
yy ...Copy the line the cursor is currently on into the buffer
p ... Paste the buffer
r (then type character) ...Replace character under cursor
u ...undo (hit multiple times to undo prior actions)
When done with a command like this, hit Esc to go back into normal mode.
Second nature after a bit of practice! I used to work with a guy who insisted on using ed. That was... odd.
Yeah but op was comparing editors, not OS's. https://emacsos.dev/
Heh. Sounds like a modern variant of Zawinski's Law: https://www.laws-of-software.com/laws/zawinski/
:h?
:q
Not in my case but part of Emacs' downward-trending mindshare could be due to RMS himself.
Is RMS still actively involved in Emacs?
Been using it (not often beyond basics for home server container administration) for years but I always get confused with searching vs search and replace vs global search
/ (n for next instances)
:%s//
:g//p (grep was named after this one IIRC, Global Regular Expression Print)
And often I just use :%s to search and highlight all instances and don't press enter because I forget the others and I often have to search and replace for docker comppse snippets.
I use Helix... Uhhh idk I think it's nice I guess
There are dozens of us!
🤝
Helix for modal, Fresh for non-modal.
Hmmm, Fresh looks interesting, didn't know about that one!
micro for sensible defaults out of the box, and because I don't like modal editors.
Neovim
I found the correct answer.
Team Neovim.
I looked into ed, then decided its not for me.
nano. I can't memorize esoterica.
That's who micro exist. And is so much better.
nano still wins. All the shortcuts are listed at the bottom.
Micro doesn't need to list the shortcuts because it uses similar shortcuts to notepad and you don't have to do weird ctrl+x to exit but ctrl+q (for quit). Also copy and pasting isn't a nightmare in it.
Copy and paste in nano work just fine - no clue what you're talking about. It uses standards established in the '80s - Ctrl-X for eXit being an even older standard - and clearly lists them visibly for a quick reminder.
Yeah cutting text with ctrl+k instead of ctrl+x (because that's exit) and copying with alt +6 instead of ctrl+c.
Le
Mao.
In emacs ctrl+y is paste, which is weird to me because i'm pretty sure even in emacs the logic is that y stands for yank, but in every other program i've used so far yank means copy, not paste. In the end though i feel like muscle memory from other editors don't bother me as much, and i can learn multiple at the same time. I started with evil mode for vim bindings for a short while, but now i'm diving into pure emacs bindings.
Yeah, that's what the shortcut hint shows, champ.
Why doesn't my Lemmy comment box show shortcut hints? How will I know the shortcut for copy, cut and paste? I tried pressing alt+6 but it did nothing. Curse you Ecmascript from 1997!
nano for quick things; emacs for longer typing sessions.
Emacs its a so-so operating system (that devours your ssd) with a not do good embedded text editor
It works well for me. I love how easily I can adapt it for my needs.
Emacs comes with Evil mode, which has vim keybindings, which makes it a pretty good text editor.
Emacs
how do y’all deal with that pinky
NANO I just need simple, and tell an me how to save and exit without abstract key codes.
Nano, because it's the only one I can remember how to quit from without power cycling the computer.
Top Tip: open another terminal and kill the task from there
( /s )
You are in edit mode and you need to get out of it. Press ESC, and then colon which will show in the text area at bottom of window. If you want to save, push w, then q and the enter to quit. If you want to quit without saving, you have to force with !.
Escape, colon, (W)ith save, (Q), Enter
Or
Escape, colon, (Q)uit, !, Enter
If you just want to use the text editor commands, you just do escape to be able to enter text on the line.
Either you forgot your sarcasm tag or you shouldn't be using computers 🤣.
Surprise unix_surrealism
You know you've made it as a content creator when other content creators redistribute your content!
Emacs.
With all the vimmery going around nowadays though, I feel like I'm on the losing team. ;_;
Join us! Use Evil mode!
Still team Emacs. We're a team because we use elisp, not because of something trivial like how our text editors work.
I'm an
emacs -nwkind of guy.But if I have to pick one of your options,
nano...but only to mod the repo config to install emacs-nox. After that having seen the resource usage is the same as vi just use what's most versatile.
No only OP provided almost no discussion value in the post body, but also this topic has been discussed one million times and nothing more can be talked about.
Isn't the chance for us Lemmings to share experiences a good enough reason to start this thread?
To be frank, not really. What's so special about us Lemmings? I mean, so many other people brighter and more experienced than us have already shared. Whatever we said here can only be a subset to that at most, then why not just read the old threads.
Understandable, have a good day!
Same to you. Happy holiday.
I appreciate the sentiment. No tru holiday under the evil Empire's hammer tho.
Sure, but now I'm curious about all this helix business, and what's up with org mode in EMACS? Like, y'all can do presentations in a CLI editor? Is it that text-to-diagram code or something?
Helix when I can install things, vi when I can't.
I generally install boþ if I can, too, because helix still has no equivalent for
vim -d. Diffs are þe only reason I run vi(m) anymore.I only ever use a terminal based editor for making quick edits of config files, so nano works just fine for me.
Helix
I've never heard of helix before, is it any good?
I use it daily and think so. Best part is that it dose not need any plugins to be a modern editor. Just configure any LSPs you want and it all just works including things like fuzzy finding, multiple cursors, file browsing etc.
This all being said a plugin system is close to being added. :)
Imagine vim designed today.
Which, for those not already knowing, is basically a reboot of VIM.
Nano. It's easy and I've never had a reason to change.
I use nano because I haven't learned how to use anything else yet.
I use nano because it's always there.
this too
I have switched to using helix, so no matter which distro I am on I need to change it to be my default by setting the EDITOR env var.
vim
"Why are we running from the police, Dad?"
"Because they use vim, son. We use Emacs".
mcedit
Vim forever, any flavour, don't care.
Why? Does actually exist anything else for the terminal?
One of us!
I realized that I'd forgotten about pico and joe, the latter was my very first text editor (hated it!).
There are also Helix and Microsoft Edit.
I knew someone would mention joe! It was the first editor I was taught.
I used to use Neovim but now I mainly use Helix, it's really good by default, the most hassle is usually just looking up an LSP for a language and installing it.
My config file literally only has the theme I use, unlike the heavy configs I'd have to make so that vim/nvim are the way I want. I also like the multiple cursor approach it has to editing.
You do!? I cannot STAND it! Am I using it wrong? C to add another cursor on the line below but only if it already has a character in that column. It seems strictly worse than VIM's visual line selection with V.
For use cases like that it's usually better to search a pattern and split it to cursors. Also using line selects helps.
I remember being annoyed at what you said but I guess I was overusing C for new cursors when there were other ways to do what I needed because I don't have that often now
I'm on team "whatever comes pre-installed"
Neovim. One time I accidentally opened nano and couldn't figure out how to get out of it... Wtf is with those keybinds?
Lol at emacs not even being on your list. Suck it, emacs users 😂😂❤️
Firstly, Emacs is not an alternative to any terminal based text editor, it's an alternative to the terminal based workflow in general.
Secondly, Emacs users can live without the hype, churn and elitism of the vim ecosystem and with a better editor instead.
And not just an editor, but an entire environment! I've only been using emacs for a few weeks now, but i'm really enjoying it. I'm not a developer, but i still find magit really awesome to use for my git needs, and atp i've replaced yazi with dired as my keyboard-driven file manager.
As the old joke goes: Emacs is great if you want to learn another OS.
I'm a barbarian vim user. Whenever I watch a real Emacs user operate a full dev environment inside of Emacs I'm always left stunned. It's a whole universe of functionality, not just a refined line editor like vim.
Shots fired!
It literally tells you like 3 ways you exit nano at the bottom
@SocialistVibes01 Emacs of course
Vi
VIM FTW
You young punks. :)
another vote for Neovim!
nano but i'm a casual. i can use vi/vim in a pinch, but i'm inefficient. ed and emacs are totally foreign
i tend to use a graphical text editor like Kate unless there is a specific reason to do it in the terminal
nano, and I'm an expert.
same. I'll use vi if there's nothing else available, but I default to nano if I can
Big fan of Helix. Best part is that it dose not need any plugins to be a modern editor. Just configure any LSPs you want and it all just works including things like fuzzy finding, multiple cursors, file browsing etc.
I use nano for quick edits. I don't know more than the basics of vim, and don't do a lot of editing on the terminal so I haven't needed to.
Just
echotext to create a new file or usesedandawkto edit an existing file.In reality, I use
nanofor edits andvimdifffor comparing files (usually a.pacnewafter an update on a headless device)Atleast be a neckbeard and use
catthe way neckbeard Gods intended \sI am a noob. My server is a MacMini running Ubuntu server because it was easy to install. I have a website, Jellyfin and nexcloud.
I don’t have the brain cells to understand VIM.
In the CLI, I use nano, always. In the GUI, I use Sublime text because the colors are very pretty.
Micro, for muscle memory for keyboard shortcuts from when I was a mostly GUI user.
For novelty I do install msedit, because nostalgia is rose tinted. But for realsies it's vim, not because I'm good at using it, but I'm familiar enough.
Used to be vim back in the day, neovim with a few lsp plugins — hated the convoluted collection of config scripts — then into vis (modernized vim/sam hybrid) but now settled on helix. After a small adjust for some finger memory, I wouldn’t go back. A lot of quality of life features out of the box.
I just a modal editor that just works with some quality of life features as codebases I worked on grew in complexity.
I use the vi family of text editors in a CLI environment because it is part of the POSIX standard.
Even if nano is the default, vi will be there too, and I can just use that. Plus, if you know some basic vi commands, then you can get by without nano, and you don't need to know nano to use it for basic stuff as it shows you the key combos.
sed forever
My first computer was an Amstrad 664, with a green screen. I’m old. And I’ve been around Vim and EMacs from time to time and I love the console but for the love of god, since GUIs became the normal way to interact with computers, I just install micro now and have the same hotkeys across all the modes of interaction.
Speed of typing really isn’t the defining productivity measure for code.
Now I use VS Code in a GUI and micro on the console and that provides a reasonably consistent way of interacting with text.
I have been learning vim specifically because of VimWiki. It’s always fun getting a few words into writing a document before realizing I wasn’t in Insert mode, then I have to figure out what I messed up.
vi, since it's ubiquitous.Been using linux full time for 10 years. I do almost all of my system admin stuff in the terminal (my desktop, laptop, home server with a few containers). But i cant for the life of me figure out vim (like i know how, but it just doesnt click for me or feel natural)... i tried a bunch of times and will keep trying... but until then, its (shamefully) nano for me
Nano 4 life
Helix: Barely needs a config. But they are also pretty close to done with a plug-in system for the stuff that isn't implemented by default :D
Nano. It's the easiest to use
nano, vi, geany, kate...
I prefer nano - simple to use & always available. I manage remote systems often from my mobile using termius: config file editing, writing simple scripts for some analysis/automation tasks and recording task notes and status. Using a tablet I might use vi but generally prefer nano.
Micro is pretty nice, has limited mouse support in the TUI line numbers highlighting. That or Neovim customized
Neovim.
Nano and I've actually started using Helix which I like a lot. It's keybinds make more sense to me than vim.
When I first started using Linux I used Kate, I know, I know, not command line, but I didn't needed a command line editor for my own computer. Eventually I started using nano for quick edits and that became my default CLI editor for a while. I don't remember what I used as an IDE back then, but maybe it was Eclipse, although I think it was mostly just Kate.
Eventually I decided to learn either VI or Emacs, and a friend who used Emacs pushed me to that side. I ended up switching everything to emacs, CLI, IDE, I even learnt org-mode and had tables and presentations in it.
Eventually my pinky started to hurt too much, so I switched to Pycharm for python, and kept emacs for C++, text edits and org-mode. I ended up slowly switching emacs everywhere and reverted to nano.
Some years back I decided to properly learn vim. I have been using nvim for a few years, and while it's not the everything tool that emacs was for me, it's still pretty darn useful. I also haven't become a movement ninja and oftentimes I go
wwwwwwto get where I want to be. But still, there are some very nice shortcuts that I use a lot like Change Inside/Around or Delete X lines. Macros are cool, and sometimes feel magical, but other times they don't work like I expected and I can't figure out why. I don't see myself changing to something else, the ubiquity of vim shortcuts in other programs makes it very convenient when I have to use something else.Neovim, configured entirely through nixvim. I always liked neovim, but it's never been as incredibly stable as now with nixvim.
Main/only IDE both in private and at work. Can't ever go back, muscle memory has ensured that.
https://github.com/microsoft/edit
Ew
Yeah that part is weird.
I used Neovim for a couple of years and then switched to Emacs. I love it.
Nano because like why would I bother with anything else? It's just a quick and dirty text editor.
I typically use nano for the quicker edits but enjoy using vim otherwise.
Team vim! Learned it five or six years ago, and never looked back. I've also got vim motions enabled for my shell, in the browser (firefox with vimium), and in my window manager (sway).
Vim/neovim if you are willing to take the time to learn how to use / config it.
Micro otherwise, very sensible keybinds and ux that map to modern gui apps, though it doesn't come installed in most distro unlike ed and nano.
Vim barely needs configuration, btw Been wanting to try Neovim but I got overwhelmed when I tried to set it up and the default behaviour is different enough from vim to annoy me back to vim
kate textfile &and what ?? don't leave me hanging
Profit
(A single & is used to detach the process. Though Qt apps keep logging)
Mostly Neovim and Nano. Tried out ed in the UNIX4 tape that got recovered, was strange but fun to see where sed, grep and other commands got their name from.
GUI is still good old Sublime Text, but I almost completely switched to terminal based editors, I guess because of the nice work flow.
suffer.
isnt the whole point we get to use the tools we want?
Once you configure nano with a
~/.nanorcfile, it becomes a lot more like micro/helix without having to install anything on new systems. I just curl my config and I'm good. I have Ctrl+C, Ctrl+V, 2 space tabs, mouse scrolling +selection, syntax highlighting, etc. There's a lot you can do in there, and that's not to mention plugins.If we're talking purely something basic to be able to edit some shit on the system i think i would choose nano, purely because i've used it for years to edit everything (yes, even config files in full programming languages lol) and thus i'm very familiar with it. If we're talking anything terminal-based in general, i like helix as a modal editor. I chose it over neovim at the time because i didn't feel like configuring the whole thing, and helix is pretty much ready to go with lsp and everything ootb. A few weeks ago though i decided to make the switch to emacs, since i use guix now, so it felt like a natural fit. I might check out emacs in the terminal at some point, but i'm sticking with the gui for now.
VIM Learnt it in my first semester and use it ever since.
Was staunchly team vim for 15 years, but now I'm on helix. As another user stated below, its like if vim were re-designed today, and without needing any addons to be a code-aware editor.
Emacs!
Helix + my Nix-based configuration tool
Neovim for terminal but often I use kate for gui because I still don't find vim commands more efficient
When I ran a trivia bot on irc back in the day, I used to use sed to edit question files. But mostly use nano now. I don’t do anything all day and COULD learn vim/emacs/something else. But I cbf
Kate 👀
Nano is the easiest most straightforward to use, and it's what I always use. I have nvim setup and I really believe it is better but I have had 20 years using nano and I really struggle forcing myself to switch and get used to it as it's so completely different.
Team vim, but I've been using Helix instead for a year or two -- it's like if Neovim and Kakoune had a baby.
Seems I'm alone here on this but I'm team vis
Vim is worth learning minimally because it is so common, but U am team nano because I have enough info in my brain and I don't edit text files in the terminal enough to make it worth remembering how to properly use vim
Emacs → Vim → Neovim → Helix
micro for sure. But I dont use it as a main editor. Just for quick text file adjustments.
Vim unless I can neovim.
Being able to change configs on headless systems was my gateway, now I just prefer it
vim forever (i think)
vis. Only used it for editing configs and stuff though, not programming.
Neovim + LazyVim
neovim through nvf on NixOS. I'm not even a power user, I just had a shit mouse in college and didn't want to use it and now I'm hundreds of lines of Lua too deep to go back. This is my life now.
Acme
just learn acme
I was just now years old when I learned that mg (AKA MicroGnuEmacs) comes with OpenBSD & MacOS.
A few years ago I'd say Vim but nowadays it's Neovim for me.
Vim for the most part, and nano for when I'm tired and can't remember how to work vim.
I generally use micro on the terminal, kate or gedit in the GUI, depending. No hate towards the others, just what I've settled on over the years.
My first distro shipped with pico, so I often choose nano for an edit. Micro is fine, too, but I won't go out of my way to install it.
I challenged myself to write a couple of projects in neovim over a month or so. I finished my projects, but it still felt like the tool was getting in my way. Muscle memory is to break. Current job requires a bigger IDE, but I still do my commit messages with neovim.
I still use nano, I tried micro and it's confusing af to use also it didn't allow konsole context menu to copy anything from it or paste anything from outside even with ctrl+v or ctrl+shift+v
Exporting $EDITOR instead. Also, i don't use sudo; too much for desktop, too insecure for server.
Ed when i need to get into a server and i have no clue whats running.
Nano when i know whats running and i cant install things.
Vim when i can install things.
At wprk we use vscode wnd jetbrains products but they are omly ok. I still like vim more.
Used to use micro but just switched to neovim, I'm finding it great, esp with the file manager built in
do you use neovim over vim for any particular reason?
i ask because i'm a vim user and wondering if should update but wondering if the x windows overhead is worth it.
I just assumed it was probably better in some way, idk the difference but didn't want to run into smth and need to switch
That's where I am. I failed at switching to other things because vim has become muscle memory for me
Have been using vim for the longest time, but I‘m getting into nvim :)