ShinyLemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 1 year ago

My wife was unimpressed by Vim

programming.dev

message-square
184
fedilink
949

My wife was unimpressed by Vim

programming.dev

LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 1 year ago
message-square
184
fedilink
  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    31
    arrow-down
    2
    ·
    1 year ago

    alias vi=nano

    • PureTryOut@lemmy.kde.social
      link
      fedilink
      arrow-up
      27
      ·
      1 year ago

      export EDITOR=nano.

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

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        18
        arrow-down
        1
        ·
        1 year ago

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

      • ryannathans@aussie.zone
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        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
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          I guess shell languages can’t do this:

          export EDITOR=case "$OSTYPE" in
            linux*)
              nano
            ;;
            freebsd*)
              ee
            ;;
          
          • ryannathans@aussie.zone
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            edit-2
            1 year ago

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

          • SpaceNoodle@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

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

    • tiredofsametab@kbin.run
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      You can set your default editor (maybe in .bashrc or .bash_profile? I forget), but I’m far too lazy.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 941 users / day
  • 4.7K users / week
  • 9.15K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.36K Posts
  • 46.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org