Spyke
lemmy.world

+1 for nano. I just need to change two parameters in a config file, not join a religion.

234
Damagereply
slrpnk.net

When the holy war comes, you'll be among the first sacrifices!

69
feddit.de

Nano is only helpfull because of this nifty little info bar at the bottom.. No one can actually remember nano-shortcuts.

20

Consider micro. The shortcuts for editing test are what I expect them to be everywhere else I edit text.

2

Up down left and right?

I guess ctrlx enter y ? But it has a prompt

2
feddit.de

Nano Shortcuts are shit. Like CTRL+X to save. What the fuck??? Why not use CTRL+S for this?

1
woelkchenreply
lemmy.world

I just need to change two parameters in a config file, not join a religion.

But Nano is a GNU utility what use Ctrl-O for Save.

7

I recently switched to micro that is similar but with more sane key combos.

Now I just mistakenly use nano combos. Back to nano it is lol

2

I had to learn vi because it was installed everywhere and nano didn't exist yet. I always thought the holy war to be very silly, and even though many treat it as such, there are too many who take it seriously.

3
lemmy.blahaj.zone

I was talking with a sysadmin once who intentionally removed nano and emacs from any system he was granted access to. His explanation was “if they can’t use vim I don’t want them on my machines”

79
lemm.ee

There's a sysadmin at my place who does exactly that. He's kind of an idiot too.

72
lemmy.world

As a VIM user, I don't want you using VIM on my system unless you know how to use it. I don't want you borking fstab or the passwd file or some other important config because you don't know how to quit without saving.

2
CalicoJackreply
lemmy.dbzer0.com

If a sysadmin expected me to use vim for every minor config tweak, I wouldn't want to be on their machines either.

57

I find vim quicker and easier for quick edits too, mostly because I've not bothered to learn anything but vim since it's on everything (except, for some odd reason, the default build of Gentoo)

9
0xDreply
infosec.pub

Once you get the hang of it it's just so much quicker for small and big tasks.

Check out vim adventures:

https://vim-adventures.com/

Or just install vimtutor and try around. The basics are pretty simple, and the more advanced stuff infinitely helpful.

3

and the more advanced stuff infinitely helpful.

Thanks, no. At that point i use sed, grep or a GUI editor.

6

Why? Nano doesn't need training, and even for config the engineers shouldnt be able to impact production without review. Sysadmin needs to retire

6
riodoro1reply
lemmy.world

Wow, I hope he didnt choose their distro for them too.

10

True fact. It's one page of directions on the archwiki and the only place you have to deviate is in selecting bootloader and network. Not exactly a 5D rubix cube.

0

I wouldn't shame an Ubuntu user. They have their hands full with their windows dual boot and trying to figure out what an RTFM is.

Mostly they are the nano users in the meme though so they got that going for them, which is nice.

1

Imho on any server today all editors should be removed. You edit on your workstation and provision to the server.

5
lemmy.world

Brilliant! I don't entirely disagree with that. I had vim forced on me at my old job, including actual vi on some of the more ancient systems. I got so used to it that I don't really know how to use nano and definitely not emacs.

I never understood what the big deal was. Write. Quit. If you can't remember that 'w' means write and 'q' means quit, I don't know how else to help. Add in some decent options in your vimrc and it is pretty comfortable. I am in no way some guru who knows every shortcut and fancy command out there, but I like using it and it is the first thing I install on a new system.

I am not one to judge what text editor, OS, phone, car, or computer you like. You do you. If I was a sysadmin that had to deal with people who really shouldn't be on those systems and that was an easy way to discourage people from screwing with it, then hell yeah.

-3
lemm.ee

Knowing VIM does not make one a better sys-admin. You can be an idiot, and still know how to drive Vi/Vim. There is FAR FAR FAR more to managing an OS and than that. If you think requiring VIM is enough to keep unknowledgeable people away from servers, you are probably the one who shouldn't be managing servers.

11
sh.itjust.works

Here's the one reason why I decided to learn Vim rather than emacs: You will find Vim installed somewhere on basically any Unix-like system running in the world. It's the one I can virtually guarantee is there, as part of busybox if nothing else.

4
lemmy.blahaj.zone

Except for Gentoo, for some odd reason they've never included it in the stage tarball so it always has to be installed manually

Which is even weirder when you realize it is included on the live install iso, so you'll be using it up until you chroot and all of a sudden find it's not available anymore

2

That's a bit like...at one point during Linux Mint's installation, it removes gparted. gparted is included in the Live environment, but not in the standard install.

1

What makes you think only people with admin access use a machine? He wouldn’t allow it for anyone, admin or not.

3
lemmy.world

I've been using Vim for years, cause I can't figure out how to close it.

59
lemm.ee

eVil mode. It's next on my TODO list to try, so I can go back to Emacs' fantastic Haskell mode without knackering my left pinkie.

6
lemm.ee

Maybe with facial-recognition-mode I can get it to map a grunty squint to ctrl.

4

I think someone did that with the old Microsoft ir gaming bar thing E: kinect

1

Just that I already know Emacs' Haskell mode is great. If I get back into Haskelling I suppose I should look around options.

1
feddit.de

In the world of text editors, VIM, specifically NeoVim is the shining light. Standing at the pinnacle of creation at a height that can only be reached by zealous emacs users.

They have a learning curve through. Nano is obviously easier, but it's also just a basic editor.

:x

28
kbin.social

I ONLY EDIT TEXT BY TOGGLING OUT ASCII CODES ON A ROW OF SWITCHES DIRECTLY CONNECTED TO MY PARALLEL PORT\n

23
zigguratreply
lemmy.world

I know your lying, because if you did, you would write a mix of capital and lower case letter, because one of the switches would control that bit

8

If I have to edit in a terminal: micro

If I need to edit something larger, and want a GUI: Kate

Anything else I flirt with and then drop promptly once I can't find the time to really learn it.

22
linux.community

Jesus, why can't people just expose their drives to cosmic radiation and have it switch the bits in the file? So much time wasted writing useless editors.

21

Of course, Rebecca* has a shortcut for that, too.


*GBoard decided that was the right word when I swiped 'Emacs'. It is now formerly-known-as-Emacs' new name.

7

Really the users of any other editor. We just see you as a bunch of nerds. But you build good stuff

19
MTK
lemmy.world

The only editor I need:

Create: printf "TEXT" > FILE

Add: printf "TEXT" >> FILE

No room for mistakes.

18

Should both be the same commands. Adding should be done by remembering previous contents, no other way is allowed.

5
lemmy.ca

I want to use Micro so badly but my fingers only know Nano's nonsense shortcut keys.
Also I couldn't figure out how to make it use real tabs instead of a bunch of spaces. Not great for Python scripts.

1

I've never had to worry about tabs vs spaces with Python. Makefile, on the other hand...

2
lemmesayreply
discuss.tchncs.de

you can just download those via Microsoft's website as vsix and import them to codium. and maybe add an issue/pr in extension's repo so that it's available on open-vsix next time. :)

2
lemmy.world

Nano, based.

If I use VI or VIM I'm going to have to kill the task because I just tried to exit and uggggghhhh why!?

12
lseifreply
sopuli.xyz

and why should it be? vim and its bindings are extremely popular. should window managers all use alt+f4 to kill programs, just because its familiar to new users?

10

unless you accidentally pressed "q" to early and entered recording-mode...

11
lemmy.world

Only if you don't want to save the file

:x saved the file and exits.

3

I just moved from Nano to Helix and love it. I added nnn and Zellij as well it works wonderful.

Tried Doom Emacs but Helix had a smaller learning curve it felt.

3

Those who don't write history to drive are destined to repeat it.

5
einlanderreply
lemmy.world

Mcedit is great. It reminds me of the later versions of edit.com on DOS.

3

For me it's like riding a bike, I've probably been using Norton Commander since I was 10. DOS 3.3, Windows 2 was just a gimmick.

1

Thought I was going to be the only one.

2

Vim can do much more than nano, but for it to work, quite a few specific stars need to align, and if they don't you are screwed.

Nano on the other had just works. If it exists in your env.

1
lemmy.world

Use DE and edit files with graphical editors like a normal human being.

Problem solved.

9

* goes on web angrily muttering... Finds Arch Forum or Stack Overflow or whatever who cares... *

"Where's the GUI for pacman? What kind of a useless distro doesn't have a graphical package manager?! You're all failures and akshually I use Ubuntu"

1
lseifreply
sopuli.xyz

since i last have seen my son lost to this monster

2

who needs a UI or even hints as to what you are doing amirite

12
lemmy.world

I only use Vim, but I appreciate nano as a choice and don't even really mind visudo opening nano

7
feddit.de

I appreciate nano as a choice. Sure. But if visudo opens in nano and suddenly I have a bunch of "yoi:wq" in my sudoers I'll be upset.

7

Vim user here: Nano is a good text editor, takes a lot less training to pick up and use, and it's surprisingly capable. If I'm teaching someone how to use the Linux terminal, I'm going to teach them Nano, because they already have enough to learn. Vim is a separate class all its own.

6
zigguratreply
lemmy.world

Why did you do that! I deleted my whole file! It was important

2
waldyriousreply
lemm.ee

Wow, it's the first time I come across anyone who says they use joe. How does it differ from nano and micro?

Btw, I used to use dit several years ago, but swapped it for micro due to some keyboard shortcut issues (which are probably fixed now).

1

it's actually hard to say that I use it, once in five years I need to edit file in terminal - and joe just traditional for me 🤷‍♂️

1

nano for editing config files, emacs if I'm writing code... kwrite or joplin if I need a scratch pad or to share notes between devices respectively

4
lemmy.ml

I wish I could just edit text files as sudo with the default gnome text editor instead.

4
bronxasaurreply
lemmy.world

Does ’sudo gedit’ not work?

Disclaimer: I use neither gnome nor gedit.

9
shapisreply
lemmy.ml

Does ’sudo gedit’ not work?

If my memory doesn't fail me it used to. But gedit isnt the default text editor anymore. The new one is quite cool and clean.

It doesnt work with sudo though sadly. It's not the biggest problem tho, just a small annoyance, using the occasional sudo nano to edit files isnt a big deal.

5

I heard that it is safer to do sudoedit [file] instead of sudo [editor] [file]. At least it's like this in vim. Idk about nano and Emacs tho

2
lemmy.ca

sudo XDG_RUNTIME_DIR=/run/user/1000 DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=/run/user/1000/bus XAUTHORITY=/home/caseyweederman/.Xauthority gedit

1

sudo XDG_RUNTIME_DIR=/run/user/1000 DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=/run/user/1000/bus XAUTHORITY=/home/caseyweederman/.Xauthority gedit

Reported for hacking.

1

There's several GB of it sitting in my home directory, which unfortunately my admin limits to several GB, so now my vim search buffer doesn't update anymore until I delete code's cache again.

2

Nedit - was a great simple editor i discovered on SGI IRIX, still use it today. Also, emacs is in a class of itself, it's more OS than text editor 🤣

4
lemmy.world

I'd probably use helix/codium with vim bindings for more complex projects, with vim for Scripting in python/shell/config files

3

TBH I haven't used helix extensively, but I do like that I can just expect things like auto-complete and linting to work, which I would usually expect from something like vscodium, but that's not cli. So yes, helix is nice. I'm just a bit afraid that I'll forget my vim bindings because helix does things a little differently: wd instead of dw

1

Vim user here. I still can't find the value of c to the power of x in nano. Does anyone have the answer?

3
lemmy.ca

I approve this message

For advanced text editing (and project management) though, I have to give a shout out to Obsidian MD (markdown) and whomever made the code plugin for it

1

Obsidian is proprietary FYI I know this is Linux memes and not FOSS memes but I think it's still important to point out.

3

it doesn't matter to me.

I'll have to Google it anyway. then complain about it, and never actually take the time to learn these neat tools

1

Not really as both VIM and Emacs are way more flexible. I use Neovim has it uses Lua for configuration and has a ton of plugins

2