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.

m4m4m4m4 ,

The problem I had with nano is that, for the time being, it was supposed to be easy to use. With that in account I always get lost when saving a file and closing the thing because one’s used to doing something else with Ctrl+O and Ctrl+X.

Whereas with Vim (and Neovim for a little while, and now with Vis) I knew it had a steep learning curve from the start so I always had it in mind. And all the funny stories about quitting vim.

tetris11 , (edited )
@tetris11@lemmy.ml avatar

they’ve changed those bindings now, Ctrl+S, Ctrl+X, Ctrl+V, and Ctrl+C all do what you think they do

m4m4m4m4 ,

Great, now the next time I’ll use nano I surely will forget about this and get frustrated when trying to save a file with Ctrl+O

tetris11 ,
@tetris11@lemmy.ml avatar

you still can, but I think Ubuntu and other prepacked distros will switch soon to the better bindings

socsa ,

Great so now I will mangle all my merge commits depending on which version the host is using.

lemmyvore ,

I’m thinking Ctrl+C quits and Ctrl+S is scroll lock is that correct?

tetris11 ,
@tetris11@lemmy.ml avatar
  • nano

    • Ctrl-Q search backwards
    • Ctrl-S and Ctrl-X is save file
    • Ctrl-V is scroll down
    • Ctrl-C is cancel or info
  • nano --modernbindings

    • Ctrl-Q quits
    • Ctrl-S is save file
    • Ctrl-X is cut
    • Ctrl-C is copy
    • Ctrl-V is paste
dysprosium ,

For vim I had to config or install something just to be able to COPY something to use outside vim, how backwards is that? Isn’t this the most standard feature one can expect to work as default?

thingsiplay , (edited )

deleted_by_author

  • Loading...
  • gnutrino ,

    Once again proving that the easiest way to work out how to do something in vim is to post something along the lines of “vim sucks because it can’t do x” online :)

    flying_gel ,

    You mean you couldn’t copy some text from vim and paste it into another application? if yes, what did you have to install/configure for that? I’ve never had any issues copy paste from/to vim, console/GUI windows/Unix.

    Chewt ,

    it actually does work by default, you just probably missed how to do it in the help pages in vim. For those curious, the system clipboard is its own named register in vim (:help registers to learn more) and can be accessed with either “* or “+ depending on your how your system is configured.

    To copy a line: ”*yy or ”+yy

    To paste a line: ”*p or ”+p

    RxBrad ,
    @RxBrad@infosec.pub avatar

    The Holy Trinity: VIM, Arch, and Rust

    A7thStone ,

    That’s a weird way to spell Vim, Arch, and C

    amw3i7dwgoblinlabs ,
    @amw3i7dwgoblinlabs@lemmy.world avatar

    Seems you have a little typo, Emacs, Arch, and C

    krakenfury ,

    Fixed it for you: VSCode, Red Star OS, and sh

    Telorand ,

    Fixed it for you: Emacs.

    Kaput ,

    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.

    corsicanguppy ,

    supposed to be VIM vs Emac?

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

    MonkderVierte ,

    There’s always ed for masochists.

    imouto ,

    Ed, man! !man ed

    ReCursing ,

    Ugh, I swear vi and it’s derivatives are the absolute worse text editors going. There may have been reasons thirty or forty years ago, but now it’s just complexity and a weird ui for the sake of it

    matthewmercury ,

    I use VS Code on the desktop nowadays, but vi will always be my editor of choice in a terminal. Many of the reasons it was powerful and ubiquitous 30 years ago are still valid, so it’s still powerful and ubiquitous. And I’ve been using it for thirty years, so why would I switch to a training-wheels editor?

    ReCursing ,

    Because you want to get out of your Stockholm syndrome?

    matthewmercury ,

    Stockholm Syndrome was never real, it was made up to explain a situation where hostages recognized an injustice and refused to perpetuate it, so cops called them crazy. So sure, if you call me crazy for my affection for a tool that has served me well for decades, I’ll consider you a cop.

    ReCursing ,

    Okay… because you refuse to actually look at whether there are better options than the absolute trash you are using because you are used to it

    BaroqueInMind ,

    I’ve used other options and carefully elaborated them all, vim remained a superior tool.

    socsa ,

    Vim is way easier tho

    737 ,

    stop using vim, if you want a non modal editor use vim -y

    rhys ,

    Uh, just trying non-modal vim for the first time and… how do I quit it? I can’t :q.

    Boxscape ,
    @Boxscape@lemmy.sdf.org avatar

    Uh, just trying non-modal vim for the first time and… how do I quit it? I can’t :q.

    https://media1.tenor.com/m/X2w2_BDKEJIAAAAC/drink-spray.gif

    MyNameIsRichard ,
    @MyNameIsRichard@lemmy.ml avatar

    I’ve never tried modal vim because I’ve only just heard about it. The next thing I’d try is restarting the computer. Or Ctrl + Q whichever’s easier.

    tetris11 ,
    @tetris11@lemmy.ml avatar

    Ctrl-q and then if it asks to save, type “no, fuck you”

    IndustryStandard ,

    Micro for the win

    Sonotsugipaa ,
    @Sonotsugipaa@lemmy.dbzer0.com avatar

    No, Micro for the linux

    bluewing ,

    Emacs users laughing at VIM users.

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

    RedWeasel ,

    Worst is when installing a new distro(usually in a vm ) and it defaults to nano and for some weird reason no vi of any sort is installed. I hated nano. Last time I intentionally used something like nano was the 90s with pine I think.

    prole ,

    What is there to hate? I don’t really understand. It does what it says on the package, and seems to do it pretty well. At least with respect to making small and quick edits to config files in the command line.

    RedWeasel ,

    My fingers don’t speak it is the problem.

    prole ,

    Pardon?

    GustavoM ,
    @GustavoM@lemmy.world avatar

    Nano is my “daily drive”, but I’d use vim as well – takes a couple seconds to search for “how to type in linux vim” and “how to save a file in linux vim” anyways. :^)

    AnUnusualRelic ,
    @AnUnusualRelic@lemmy.world avatar

    The first time I found myself in nano was when testing a distro fifteenor twenty years ago. I had to edit some files and it was the only available editor. The damn thing was a horror to use. I still have no idea who it caters to. I haven’t had to use it since though.

    Jean_le_Flambeur ,

    Dunno what you used, but nano is literally a text editor that may be simple simple but it just works. Shortcuts are shown to the user, buttons work like you expect them to (arrow keys, ESC, shift, etc)

    With vim you open it and if you haven’t read 5pages of doc you won’t even be able to close it again. I see that its useful for power users, but for casuals who just want to edit a config once in a while nano is absolutely the way to go imho

    Fizz ,
    @Fizz@lemmy.nz avatar

    I started on Emacs and then didn’t use it for a few years and forgot everything so now I’m stuck on Nano. But that’s fine because nano does everything I want it to do.

    brokenlcd ,

    Ed users entered the chat

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines