948
you are viewing a single comment's thread
view the rest of the comments
[-] tiredofsametab@kbin.run 54 points 1 year ago

As someone who's been a software developer for over a decade and in IT even longer, I still don't use vi/vim for anything other than when crontabs have it set as the editor.

[-] SpaceNoodle@lemmy.world 29 points 1 year ago
[-] PureTryOut@lemmy.kde.social 27 points 1 year ago

export EDITOR=nano.

But (neo)vim is amazing so there is no need to do that.

[-] SpaceNoodle@lemmy.world 17 points 1 year ago

I transfer all my files over to a Windows machine and edit them in Notepad

[-] ryannathans@aussie.zone 4 points 1 year ago* (last edited 1 year ago)

Based nano user

From my .zshrc (typing this on mobile so cope if it's wrong)

case "$OSTYPE" in
  linux*)
    export EDITOR=nano
  ;;
  freebsd*)
    export EDITOR=ee
  ;;
[-] lil@lemy.lol 2 points 1 year ago

I guess shell languages can't do this:

export EDITOR=case "$OSTYPE" in
  linux*)
    nano
  ;;
  freebsd*)
    ee
  ;;
[-] ryannathans@aussie.zone 2 points 1 year ago* (last edited 1 year ago)

That would be too smart. Smells like kotlin's when

[-] SpaceNoodle@lemmy.world 2 points 1 year ago

Put backticks around the entire case statement, and you can.

load more comments (4 replies)
load more comments (12 replies)
this post was submitted on 08 Apr 2024
948 points (98.1% liked)

Programmer Humor

23201 readers
1763 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS