There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.fosshost.com

btp , to linux in How dare you use a text editor because it's easy to use
@btp@lemmy.world avatar

The best text editor is ‘$EDITOR’.

0x0 ,

I think you mean “$EDITOR”. Gotta have that variable expansion.

namingthingsiseasy ,

Not necessarily! I always run ln -s ‘/usr/bin/$EDITOR’ $(which $EDITOR) after a fresh install, so I have a valid executable on the path called $EDITOR.

Of course, then I have to make sure to add export EDITOR=$EDITOR to my .bashrc. (Obviously.)

sabin ,

Well,.that’s one way to solve the problem of not expanding your editor var correctly…

Mr_nutter_butter , to linux in How dare you use a text editor because it's easy to use
@Mr_nutter_butter@lemmy.world avatar

If I’m doing quick txt editing nano is great and what I know I can’t figure vim out for the live of me

hjjanger , to linux in How dare you use a text editor because it's easy to use

Emacs

tastysnacks ,

Hey now we don’t denigrate vim and nano users. For the nano users, denigrate means to put down.

cerement ,
@cerement@slrpnk.net avatar

and sometimes you just need a text editor, not an entire thesaurus

queue , to linux in How dare you use a text editor because it's easy to use
@queue@lemmy.blahaj.zone avatar

Nano isn’t even that simple. Ctrl+X to quit? I guess if you use phonetic sounds to figure out how to exit a program. At least Vim uses the idea of “use what the words start with.”

I personally use micro in the terminal, and Kate if I want a GUI to write. Vim and Emacs are fine for those who want it, I have no stakes in the editor wars beyond “I just want my program to do what I want, and I want it to be simple to learn.”

Doxin ,

Nano has a cheat sheet at the bottom of the screen at all times

queue ,
@queue@lemmy.blahaj.zone avatar

Meanwhile I can just use the same shortcuts every other program made in the last 40 years uses. Ctrl+Q to quit, Ctrl+S to save, Ctrl+Z for undo. If I wanted to consult a cheatsheet to relearn keyboard shortcuts, I’ll use vim and emacs.

cravl ,

To be fair, you can easily rebind all the keys to be more normal by adding a .nanorc. Though, Ctrl-Z conflicts with suspend in many terminals, so I keep that one as Ctrl-U. A .nanorc also allows turning on mouse support, changing the color scheme, etc.

headset , to linux in How dare you use a text editor because it's easy to use

Ohh look! a sad scripter editing his tiny little script on a terminal window. How cute.

linearchaos , to linux in How dare you use a text editor because it's easy to use
@linearchaos@lemmy.world avatar

Get’er Robbie she’s under the desk!

daniskarma , to linux in How dare you use a text editor because it's easy to use

I’ll say that I find easier to exit vim that to exit nano.

I don’t know what ^ means. I just start pressing special keys until it doesn’t the thing

LodeMike ,

CTRL

JustAnOrdinaryCreep , to linux in How dare you use a text editor because it's easy to use

Vim actually IS easy to use once you get the hang of it, plus more comfortable and efficient.

Nanos just an excuse for lazyness, cmv.

KillingTimeItself , to linux in How dare you use a text editor because it's easy to use

idk man, vims pretty chill, it even has a tutor in it already, what more could you want?

soul ,
@soul@lemmy.world avatar

One that’s intuitive and doesn’t require a cheat sheet or what I like to call fingular contortionism discovery.

SirEDCaLot ,

A text editor that doesn’t need a tutor because the interface is intuitive enough that someone who has been using text editors (as a concept) for years can more or less instantly pick it up and start working without needing a tutorial to simply edit a config file.

KillingTimeItself ,

a text editor that has a tutor because it’s been around for so long and it’s had so many years to establish itself with an outside control interface that’s quite literally about as optimal as it can be. Vim basically allows you to never move your hands away from the homerow keys, even when navigating and doing bulk edits. The sheer amount of gained speed and productivity you get from this combined with the amount of times you’ll have to deal with text editing throughout your life is probably going to outweight any potential learned annoyances.

bleistift2 ,

A text editor that doesn’t assume that the keys on my keyboard are in the same order as yours.

Telorand ,

I remember looking up how to use Colemak with vim, and the advice was:

  • Change the mappings so the position is the same, but it has the downside that every tutorial won’t match.
  • Keep the mappings and do awkward stretches for common functions like up and down.

So I just gave up and moved on.

noisypine ,

I hit the same wall with Dvorak layout.

KillingTimeItself ,

that is a potential problem, though im sure there’s a vim user somewhere that’s fixed it with a bind set.

Luccus ,
@Luccus@feddit.org avatar

it even has a tutor

Yes, people are just lazy. I remember when I invented a new login screen and was told it was “difficult”, “confusing” and “took some getting used to”.

It even came with a free 100-page manual and a 4-hour master class. Some people, I tell you!

^This is meant more as a joke than an actual critique, even if it kind of reflects my thoughts. But ultimatly, I thought it was a funny bit.^

Gacrux , to linux in How dare you use a text editor because it's easy to use
@Gacrux@lemm.ee avatar

is there not a single other person who uses helix?

lenuup ,

WTF is helix?

Gacrux ,
@Gacrux@lemm.ee avatar

helix-editor.com

essentially a terminal modal editor (like vim), but instead of specifying the action to perform then what to perform the action on (like “yank 3 lines”), in helix you select first, then perform actions on the selection (like “these 3 lines, i want them yanked”). it’s slightly better (according to others) because you get to see what you’re going to change in the file so you don’t accidentally delete 5 lines instead of deleting 4.

on top of that many features are builtin, like tree-sitter and lsp support, so you don’t have to spend 5 hours looking for cool plugins and configuring everything to get started (my config file is only 50 lines of toml).

the downside is that there isn’t support for plugins (yet), but there’s already things like a file picker, more than 100 themes etc.

cmhe , (edited )

So similar to kakoune? I tried that for a while, but it was missing some features so I went back to vim/neovim.

I need to know vi anyway, because that is available everywhere (as part of busybox), so using vim/nvim for bigger systems just fits.

nameisnotimportant ,
@nameisnotimportant@lemmy.ml avatar

Well I tried! I ended up using micro though

smiletolerantly ,

I gave it serious consideration when the death of Atom was announced and I was unsure where to move on to.

Looks like in the meantime a lot has been done (as far as I remember, TreeSitter and LSP weren’t built in back then…? Not sure though), but the lack of a plugin system is still killing it for me.

TBH it looks like it has 75% of the features you want from a codeditor, which is much more than the use-case for Nano, but no way to go the remaining 25% of the way.

Underwaterbob ,

the death of Atom

I’m still in mourning.

smiletolerantly ,

It was pretty great, wasn’t it?

Although I must say. I eventually landed on neovim. Steep, steep learning curve, but now I would not switch back again.

Underwaterbob ,

I would look at that, but I bounced off VIM hard, so probably not for me.

spaceslug ,

I like helix

patatahooligan , (edited )
@patatahooligan@lemmy.world avatar

Helix’s editing model is so much better than vim’s. I would probably use it if it was be closer to a drop-in replacement for vim. I really hope this neovide issue gains some traction because I don’t think I can daily drive anything that isn’t as smooth as neovide again.

wise_pancake ,

I simply have too much vim config and muscle memory to ever leave vim

I’m trapped in a prison of my own making!

rhys , (edited )

I used it for a while. The flipped mode of thinking with it was weird at first but I liked it once I got used to it.

I don’t remember the specifics, but I vaguely recall encountering an issue with its LSP implementation that drove me toward thinking the whole LSP approach is insane and I went back to neovim.

possiblylinux127 , to linux in How dare you use a text editor because it's easy to use

Its lighter weight

StephenTallentyre , to linux in How dare you use a text editor because it's easy to use

deleted_by_author

  • Loading...
  • LovePoson ,
    @LovePoson@lemmy.world avatar

    Cap

    zaphod ,

    Whenever I open Nano basically all the commands it has are listed at the bottom, for small things it’s perfectly fine.

    AlijahTheMediocre , (edited ) to linux in How dare you use a text editor because it's easy to use

    Imagine using Nano or Vim; when you could be using Cat and Echo.

    /s

    TheReturnOfPEB , to linux in How dare you use a text editor because it's easy to use

    model editing can be fun. it is like weird skill like driving a manual transmission.

    that said driving a manual transmission in stop and go traffic on a hot day is a lot like editing in vi sometimes.

    kurcatovium ,

    Unless you’re European. Then driving manual is considered basic life skill like riding a bike.

    kzhe , to linux in How dare you use a text editor because it's easy to use

    Me on Micro

    sunbeam60 ,

    100% Micro. Unless you’re only - and mean ONLY - living in the terminal, why would you want all your desktop and terminal shortcuts different from one another?!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines