18
vi or emacs? (lemmy.world)

I think the possible valid answers are: "vi", "emacs", "both", "seriously it's 2024", and " huh?"

top 41 comments
sorted by: hot top controversial new old
[-] slazer2au@lemmy.world 24 points 10 months ago

Personally nano

But who cares what you use as long as you are proficient.

[-] stoy@lemmy.zip 5 points 10 months ago

If nano or pico is installed I will use those, else vi

[-] unmagical@lemmy.ml 4 points 10 months ago

Proficiency is absolutely key. I was troubleshooting a feature with a Jr the other day and asked him to search through the log out put (that was currently being displayed on his terminal). Unfortunately he was trying out a new emulator and didn't know how to actually search the output.

We went about it a different way, but at the end I just told him it didn't matter what tools he used as long as he actually knew how to do what's required with them and to please get that figured out for next time.

[-] DABDA@lemmy.world 22 points 10 months ago

A Fediverse community for open-ended, thought provoking questions

[-] bionicjoey@lemmy.ca 9 points 10 months ago

I swear to god like 90% of the questions I see on here have either one or two possible answers.

[-] multicolorKnight@lemmy.world -2 points 10 months ago

Okay, but nobody paid any attention to my multiple choice anyway, and the responses are thoughtful.

[-] avguser@lemmy.world 13 points 10 months ago
[-] Hobbes_Dent@lemmy.world 11 points 10 months ago
[-] Nibodhika@lemmy.world 8 points 10 months ago

I learnt Emacs years ago, it's very helpful to the day-to-day terminal use, however if I could go back I would learn Vi instead, it's better for pinky strain.

[-] anarchost@lemm.ee 4 points 10 months ago

I really wish more text editors being actively developed in the present day would take advantage of the IBM CUA standard that has been embraced by Windows and (Desktop) Linux since basically the early 1990s.

[-] Dark_Arc@social.packetloss.gg 2 points 10 months ago

Interesting, I'd never heard of that before today!

[-] gzrrt@kbin.social 1 points 10 months ago

The 'general' package has basically fixed that for me:
https://github.com/noctuid/general.el

Makes it pretty simple to swap out most common emacs shortcuts for much more ergonomic alternatives.

[-] anarchost@lemm.ee 7 points 10 months ago

Butterflies

[-] ReverseDiarrhea@lemm.ee 7 points 10 months ago

emacs. If you want vim keybindings there is a mode in emacs called “evil-mode”. If sticking with pure emacs I recommend rebinding the caps lock key on your keyboard to control.

[-] agent_flounder@lemmy.world 6 points 10 months ago

Vi for me for config, script, and text type files. Used to use emacs a lot for developing hobby stuff but prefer other IDEs now.

[-] multicolorKnight@lemmy.world 4 points 10 months ago

Likewise, I use vi for sysadmin work, and a big IDE (VSCodium) for writing code.

[-] jordanlund@lemmy.world 5 points 10 months ago

Nano (pico). You shouldn't have to look at a quickref to save and quit a document.

Get in, make your changes, get out.

[-] ImpromptuMarsupial@fedia.io 5 points 10 months ago
[-] DirigibleProtein@aussie.zone 5 points 10 months ago

vi. I can tolerate vim if I have to. I don’t even know how to quit emacs.

[-] sincle354@kbin.social 5 points 10 months ago

Both because they are the ultimate tools in maneuvering a terrible, terrible development environment. For reference, Sigasi Studio costs 2,000$ PER YEAR, and it still doesn't work for our dev environment!

Let me paint a picture: Corporate job that won't let you download anything except whatever you can smuggle through a git checkout. It took a month to convince IT to download vim 9.0 on the server. The programming language? VHDL and SystemVerilog and UVM. Horrible language support that relies on proprietary compilers/simulators, and always the ones you aren't using. The one you are using is so obtuse that it has literally 50 configuration files for a single project. All of it is run with a janky python script with half of the flags not working. LSP support is out of the question since it dynamically pulls files from god knows where with at least 10 layers of ../ relative pathing.

All I can do on vim is

  • ctrl+p for fuzzy file finding and a massive blacklist of intermediate files to ignore,

  • a custom :Make command with custom errorformat that you can navigate through,

  • Universal Ctags with per library indexes to reference those far off files,

  • and a fuckton of grepping for when Go To Definition (ctrl+]) grabs the wrong location.

Vim's autocomplete is almost always good enough. If my laundry list of plugins break, I can literally fix them on the spot and even submit the merge request on github. If you take into consideration all of this configuration and learning effort, I still save hours of navigating through the hundreds of files I have to essentially reverse engineer. My coworkers are all electrical engineers and it shows They're using godforsaken nedit with no syntax highlighting...

[-] Skyhighatrist@lemmy.ca 2 points 10 months ago

I threw up a little in my mouth.

[-] CaptainBlagbird@lemmy.world 4 points 10 months ago* (last edited 10 months ago)

Yes. And others.

[-] wjrii@kbin.social 4 points 10 months ago

Kate and Notepad++

Why yes, I was an English major...

[-] intensely_human@lemm.ee 4 points 10 months ago

Seriously, it’s 2024. Use vim

[-] pelya@lemmy.world 3 points 10 months ago
[-] gzrrt@kbin.social 3 points 10 months ago

Emacs with evil-mode. Best of both worlds

[-] nickwitha_k 3 points 10 months ago

I prefer (neo)vim because it uses the same bindings as vi, which is on every server with a decent OS since the 70s (except maybe some exotic ones like 9P). But emacs is also a good choice. So, I'm going to go with "both".

[-] ytg@feddit.ch 2 points 10 months ago

emacs

On my own system, but usually for remote work I use Vim as it’s easier to make usable

[-] Balthazar@lemmy.world 2 points 10 months ago

No, thank you.

[-] Semi-Hemi-Demigod@kbin.social 2 points 10 months ago

vi when I'm doing a minor configuration edit on a remote machine

Sublime Text when I'm doing anything bigger than that

[-] phoneymouse@lemmy.world 1 points 10 months ago

This. Why bother with any of them unless you have to… I like to use my mouse. It isn’t 1985 anymore.

[-] Semi-Hemi-Demigod@kbin.social 1 points 10 months ago

Actually I prefer Sublime Text because of its keyboard shortcuts.

[-] zxqwas@lemmy.world 2 points 10 months ago

Vim, I've not given emacs a fair try yet. At work I've got to use what I've got to use and neither is an option. At home the last thing I want to do is write more code.

When I do have a choice I'm not doing much more complicated things than editing a config file and anything more advanced than cat would do I guess.

[-] Kerb@discuss.tchncs.de 2 points 10 months ago* (last edited 10 months ago)

for me its clearly vim, the modal editing and the hotkeys are what makes vim great.

the power of emacs lies in customisation. and building your own setup.

i can use vim hotkeys in almost every ide/editor i need.

to use emacs, i need to set up emacs to do everything you need to do.

you can work like that,
but its not for me.

[-] TootSweet@lemmy.world 2 points 10 months ago

Vi.

Honestly, Vim is too heavy for me. I wish I could get a reasonable text editor with:

  • No built-in programming languages.
  • Vi(m)-style modal editing and keys.
  • No GUI. Terminal is good, thanks.
  • Not a lot of moving parts.
  • Infinite undo. (I'm ambivolent about an undo/redo "tree" feature like Vim has.)
  • Visual mode like Vim has.
  • Simple syntax highlighting would be a plus, but not a must-have.
  • Stable. As in doesn't crash.

Vim fails on #1, #4, and #7. (It has syntax highlighting, but not simple highlighting.)

I usually just use the vi that is pre-installed on Arch Linux. (I use Arch Linux btw. Bite me. 😈) But it fails on #5, #6, #7, and #8. (It segfaults randomly a lot.) But I guess those issues haven't been deal breakers enough to make me switch to something else.

I have used nvi in the past. I ended up leaving it for the Arch pre-installed vi. Don't remember particuarly why now.

Maybe one day I'll write my own text editor and ascend to full neckbeardhood.

[-] spacemanspiffy@lemmy.world 1 points 9 months ago

I respect Emacs but it's not for me. Neovim.

[-] Nomecks@lemmy.ca 0 points 9 months ago

Emacs would make a great operating system if it had a good text editor

[-] AsslessChaps@lemmynsfw.com 1 points 10 months ago

Any not ed? Back in the 80s I was working with a guy that did all his c programming in ed

[-] MigratingtoLemmy@lemmy.world 1 points 10 months ago

Ed is great but Ed is also a bit hard unless you're used to it

[-] troydowling@lemmy.world 1 points 9 months ago

Vim, or neovim if you want to put some leg work in for vi with modern features.

[-] droning_in_my_ears@lemmy.world 1 points 10 months ago
this post was submitted on 28 Feb 2024
18 points (68.0% liked)

Ask Lemmy

27253 readers
1622 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS