Changing from a distro that defaults to nano to another that defaults to vim... What to do other than installing nano and changing visudo?

top 50 comments

sorted by: hot top controversial new old
[–] 68 points 4 months ago (2 children)

Team Vim. Because I learned the vim basics once 20 years ago and never bothered to learn after that. :D

  • source
  • hideshow 4 child comments
  • [–] 12 points 4 months ago (1 child)

    I see you and raise straight vi.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 4 months ago

    That's what I was taught at my first tech internship. It's all they had on the UNIX system running the webserver in 1998.

    I did write some web pages the pulled live data from the backend. I had the pleasure of writing them in C. I got the data binding to some kind of CORBA system using extern variables that were bound at compile time. All of the html (no js or css yet) was hand built and generated from the C code.

    vi was the only editor on the system and there was no way to use arrow keys (the UNIX system didn't have them on the keyboard at all).

    I also had the displeasure of building a backup system on a floppy where I had to write a bat script that could manually load a token ring driver, bind a SMB share, load Ghost backup software and backup the local hard drive at under 2mb (yay coax thicknet). The tool used to query and write through the hostname for the backup? Copycon. Fucking copycon in DOS. That showed me how a terrible (but working) tool could be to work with.

    Unless an editor can do reasonable vim emulation, I can't take it seriously. You're welcome to use it, but I won't be able to get anything done in it quickly. The vi keys are too ground into my reflexes.

  • source
  • parent
  • [–] 7 points 4 months ago

    Vim sorely underrated. Great tools/hotkeys. Felt like a master pianist clacking away while the terminal went berserk until suddenly the 2 hour job was done in 20 minutes.

  • source
  • parent
  • [–] 43 points 4 months ago* (last edited 4 months ago) (6 children)

    At the risk of restarting the Editor wars (https://en.wikipedia.org/wiki/Editor_war) from days of yore, I find it interesting that emacs wasn't even in your list of contenders. I hear it mentioned less frequently these days, so perhaps it's going by the wayside?

    For the record, I'm a vi/vim user! I had the privilege of being taught to use it by an RFC-writing greybeard decades ago, and have used it without thinking ever since.

    For those who find themselves on a machine with only vi/vim, or want to learn, here's a quick primer when editing a file (usually done by typing "vi foo.txt" in a shell) --

    :q! ...Force quit vi (:q also works -- gentler!)

    :wq! ...Save file and quit vi

    i (then type characters) ...insert text at current position

    A (then type characters) ...Insert at end of current line

    G ...go to first character of last line in the file

    /foo ...search for first occurrence of "foo" in the file (hit / again to find additional instances)

    x ...Delete character under cursor

    :56 ...Go to line 56

    yy ...Copy the line the cursor is currently on into the buffer

    p ... Paste the buffer

    r (then type character) ...Replace character under cursor

    u ...undo (hit multiple times to undo prior actions)

    When done with a command like this, hit Esc to go back into normal mode.

    Second nature after a bit of practice! I used to work with a guy who insisted on using ed. That was... odd.

  • source
  • hideshow 7 child comments
  • load more comments (5 replies)
    [–] 26 points 4 months ago (3 children)

    I use Helix... Uhhh idk I think it's nice I guess

  • source
  • hideshow 4 child comments
  • load more comments (2 replies)
    [–] 24 points 4 months ago

    micro for sensible defaults out of the box, and because I don't like modal editors.

  • source
  • [–] 20 points 4 months ago (1 child)
    load more comments (1 reply)
    [–] 19 points 4 months ago (12 children)

    nano. I can't memorize esoterica.

  • source
  • hideshow 12 child comments
  • load more comments (12 replies)
    [–] 19 points 4 months ago

    Team Neovim.

    I looked into ed, then decided its not for me.

  • source
  • [–] 19 points 4 months ago (2 children)
    load more comments (2 replies)
    [–] 19 points 4 months ago* (3 children)

    Nano, because it's the only one I can remember how to quit from without power cycling the computer.

  • source
  • hideshow 4 child comments
  • load more comments (2 replies)
    [–] 19 points 4 months ago (3 children)

    nano for quick things; emacs for longer typing sessions.

  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [–] 18 points 4 months ago (4 children)
    load more comments (4 replies)
    [–] 18 points 4 months ago

    NANO I just need simple, and tell an me how to save and exit without abstract key codes.

  • source
  • [–] 14 points 4 months ago (1 child)

    I'm an emacs -nw kind of guy.

    But if I have to pick one of your options, nano

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 14 points 4 months ago (1 child)

    Emacs.

    With all the vimmery going around nowadays though, I feel like I'm on the losing team. ;_;

  • source
  • hideshow 2 child comments
  • [+] 13 points 4 months ago* (last edited 3 months ago) (7 children)
    load more comments (7 replies)
    [–] 12 points 4 months ago (1 child)

    I use nano because I haven't learned how to use anything else yet.

  • source
  • hideshow 2 child comments
  • [–] 12 points 4 months ago

    Nano. It's easy and I've never had a reason to change.

  • source
  • [–] 12 points 4 months ago

    I only ever use a terminal based editor for making quick edits of config files, so nano works just fine for me.

  • source
  • [–] 11 points 4 months ago (4 children)
    load more comments (4 replies)
    [–] 11 points 4 months ago (2 children)

    Helix when I can install things, vi when I can't.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 11 points 4 months ago
    [–] 11 points 4 months ago

    vim, mainly cause I haven't figured out how to quit yet.

  • source
  • [+] 10 points 4 months ago* (last edited 3 months ago) (1 child)
    load more comments (1 reply)
    [–] 10 points 4 months ago
    [–] 9 points 4 months ago

    I have switched to using helix, so no matter which distro I am on I need to change it to be my default by setting the EDITOR env var.

  • source
  • [–] 9 points 4 months ago

    "Why are we running from the police, Dad?"

    "Because they use vim, son. We use Emacs".

  • source
  • [–] [S] 8 points 4 months ago* (2 children)

    I realized that I'd forgotten about pico and joe, the latter was my very first text editor (hated it!).

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 8 points 4 months ago

    Vim forever, any flavour, don't care.

    Why? Does actually exist anything else for the terminal?

  • source
  • [–] 7 points 4 months ago (2 children)

    Neovim. One time I accidentally opened nano and couldn't figure out how to get out of it... Wtf is with those keybinds?

    Lol at emacs not even being on your list. Suck it, emacs users 😂😂❤️

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 7 points 4 months ago

    I'm on team "whatever comes pre-installed"

  • source
  • [–] 7 points 4 months ago
    [–] 6 points 4 months ago
    [–] 6 points 4 months ago (2 children)

    I used to use Neovim but now I mainly use Helix, it's really good by default, the most hassle is usually just looking up an LSP for a language and installing it.

    My config file literally only has the theme I use, unlike the heavy configs I'd have to make so that vim/nvim are the way I want. I also like the multiple cursor approach it has to editing.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 6 points 4 months ago (2 children)
    load more comments (2 replies)
    [–] 5 points 4 months ago

    I use nano for quick edits. I don't know more than the basics of vim, and don't do a lot of editing on the terminal so I haven't needed to.

  • source
  • load more comments
    view more: next ›