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

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

Emacs users laughing at VIM users.

Emacs - A pretty good OS you can use as a text editor.

theshatterstone54 ,

And to counter the old saying of it lacking a decent editor, there’s always evil-mode.

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

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

Its lighter weight

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.

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!

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.

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

The Terminator is not here to kill you, its here to protect you from Emacs (which can change its form to anything).

https://beehaw.org/pictrs/image/780de71b-d929-4c95-9b86-0bde3a949be3.webp

tetris11 ,
@tetris11@lemmy.ml avatar

Cmon dude, what’s most likely to be Skynet?

  • Vim: Clearly evil, lightning fast. Relies on vimscript for any interactivity and can barely be used outside of the editor.
  • Emacs: the hippie brain child of some of the brightest minds at the MIT AI lab, funded by military contracts. Slow, but uses a near-universal language that can easily escape the bounds of the editor, (and often does (, and holy shit where did those parentheses come from. (Oh no, it’s becoming self-aware… fly you fools!
thingsiplay ,

Vim: Clearly evil, lightning fast. Relies on vimscript for any interactivity and can barely be used outside of the editor.

I don’t know why you want use Vimscript for anything outside of the editor. But if that your issue, then there is Neovim. It uses Lua instead Vimscript, but what is the benefit of using Lua outside of Vim? That changes nothing.

tetris11 ,
@tetris11@lemmy.ml avatar

Lua outside of Vim has huge applications in embedded products. Dude I would kill for Lua. Do you know what we have? Common Lisp. Yeah, it’s great and fancy and all, but try adding that to your CV and applying for an embedded system job.

thingsiplay ,

My point is, then use Lua outside of Vim. What does this have anything to do with the language used in Vim? You can use Vimscript in Vim, and still use Lua outside of Vim. So what’s the problem? It’s not like Lua gets available to you outside of Vim, just because you switch to Neovim. What do I miss here?

tetris11 ,
@tetris11@lemmy.ml avatar

(it was mostly a joke, but) the skills you acquire tinkering your Vim to your needs using vimscript can’t be used elsewhere, whereas Emacs has the (small) advantage that at least most of one’s elisp skills can be translated to common lisp quite easily (with the joke being that common lisp really isn’t that useful, hence my Lua jealousy rant).

cygnus ,
@cygnus@lemmy.ca avatar

It uses Lua instead Vimscript, but what is the benefit of using Lua outside of Vim?

The only other (in fact, the first) place I’ve run into Lua is WoW plugins.

thingsiplay ,

But WoW plugins have nothing to do with Vim. That’s my point. You can use Lua in WoW, while using Vimscript in Vim.

PlexSheep ,

Factoring mods also use lua. Lua is a neat little extension language.

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

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

There’s always ed for masochists.

imouto ,

Ed, man! !man ed

The_Zen_Cow_Says_Mu ,

Ed is the standard editor

MonkderVierte ,

What’s with this childish rant?!

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

Nano is notepad, but with worse mouse integration. It’s Vim/Emacs without any of the features. It’s the worst of both worlds

If you want ease, just use a GUI notepad. If you want performance boosts, suck it up and learn Emacs or Neovim

dan ,
@dan@upvote.au avatar

Why would you use a mouse in a console editor? Most of the time, if you’re using Nano, it’s because you’re not in a GUI environment.

Transtronaut ,

What if you want ease on a terminal?

SeeJayEmm ,
@SeeJayEmm@lemmy.procrastinati.org avatar

Heaven forbid I want to use an intuitive, simple, terminal based text editor when I ssh into one of my boxes.

But here’s the real kicker. Why do people like you give two shits what text editor other people use?

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

Butterfly gang

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

I just use this:


<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">
</span><span style="color:#323232;">keep_generating=1
</span><span style="color:#323232;">while [[ $keep_generating == 1 ]]; do
</span><span style="color:#323232;">    dd if=/dev/random of=$1 bs=1 count=$2 status=none
</span><span style="color:#323232;">    echo Contents of $1 are:
</span><span style="color:#323232;">    cat $1
</span><span style="color:#323232;">    echo
</span><span style="color:#323232;">    read -p "Try generating again? " -s -n1 answer
</span><span style="color:#323232;">    while true; do
</span><span style="color:#323232;">        case $answer in
</span><span style="color:#323232;">            [Yy] )
</span><span style="color:#323232;">                echo
</span><span style="color:#323232;">                break
</span><span style="color:#323232;">                ;;
</span><span style="color:#323232;">            [Nn] )
</span><span style="color:#323232;">                keep_generating=0
</span><span style="color:#323232;">                break
</span><span style="color:#323232;">                ;;
</span><span style="color:#323232;">            *)
</span><span style="color:#323232;">        esac
</span><span style="color:#323232;">        read -s -n1 answer
</span><span style="color:#323232;">    done
</span><span style="color:#323232;">done
</span>
thevoidzero ,

Just ask if it’s correct. If not destroy the universe. Only The correct will survive, it’s O(1)

AeonFelis ,

What if there is no correct answer?

thevoidzero ,

It’s not fun when you have to explain it. But basically it is based on the infinite multiverse theory. Since the multiverse splits whenever you make choices, in this case the program would spawn a large number of multiverses each with different combinations of those bits, which means at least one of them would have the exactly the combination we want. If the program destroys the multiverse it is in after it determines it is not correct, only reality that remains is the one with correct combination of bytes. Making it that we will get the code we want on the first try.

AeonFelis ,

You are assuming here that I know what I want. What if there is no obviously correct answer, and even in the Everett branch that generates the optimal content for the file I’ll still think it can be improved and tell it to destroy the universe?

thevoidzero ,

I guess yeah. In that condition the algorithm would probably destroy all universe. Although you might be able to set a threshold and not destroy when it is over the threshold.

But situation where you don’t know the answer is not for this algorithm as this one came from sorting problem.

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

Micro is where its @ <3

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

Micro for the win

Sonotsugipaa ,
@Sonotsugipaa@lemmy.dbzer0.com avatar

No, Micro for the linux

PseudoSpock ,
@PseudoSpock@lemmy.dbzer0.com avatar

Nah, win can have it.

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

Isn’t this supposed to be VIM vs Emac? What’s is there point to be programming in the terminal anyway? Nano is good to fix some config files while your are in there, but if I needed to do real programming I’ll be finding something that works in the GUI.

Zozano ,
@Zozano@lemy.lol avatar

Did you just say GUI?

More like ewwwie.

deuleb_biezelbob ,
@deuleb_biezelbob@programming.dev avatar

Its GNUI

Zozano ,
@Zozano@lemy.lol avatar

What you’re referring to as GNUI, is in fact GNUI/Linux or as I’ve recently taken to calling it, GNUI plus Linux.

roguetrick ,

GNUssy

cakeistheanswer ,
@cakeistheanswer@lemmy.dbzer0.com avatar

Efficiency.

There’s 0 chance if you have to pick up your mouse that you can keep up with a Unix gray beard.

That’s just editing, if they’re from the emacs era there might be nothing you can do with text faster across their whole system.

I like vscode as a entry point, but if you care to get faster learning just vim motions and sys utils alone is going to cut time from the process.

Kaput ,

Oh it’s about speed. What’s the one that get your brain to be faster at programming? I use 4 fingers typing and am still typing much faster than I can think.

cakeistheanswer , (edited )
@cakeistheanswer@lemmy.dbzer0.com avatar

Definitely worth running through vim tutor at least once.

It’s beyond typing speed, things like piping out strings to utilities is using one program to write another, you aren’t just getting faster because of access, it’s a paradigm shift.

Edit just for fun: im a non Dev dummy who happened to grow up in a Unix household. Even having dropped vim for helix and bounced around the MS admin/Apple IT space for 30+ years. When I switched to Linux I could still remember binds I’d set up and last used at 9.

Kinda like riding a bike.

expr ,

It’s speed, but it’s also flow and a continuous stream of thought. If all your editing is being done with muscle memory and minimal thought, you can continue thinking about the problem at hand rather than interrupting your thoughts process to fumble through some context menu to make a change.

corsicanguppy ,

supposed to be VIM vs Emac?

30 years ago it was vi vs everything. I don’t see it changed today.

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