this post was submitted on 13 Sep 2023
337 points (97.5% liked)

linuxmemes

21311 readers
587 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    all 46 comments
    sorted by: hot top controversial new old
    [–] notasandwich1948@sh.itjust.works 42 points 1 year ago (1 children)

    you could also just use it in termux

    [–] Tb0n3@sh.itjust.works 20 points 1 year ago (3 children)

    Termux is great. I can use rsync over ssh to transfer much faster and more reliably than any app can. Also just regular ssh.

    [–] user224@lemmy.sdf.org 4 points 1 year ago (1 children)

    Even faster and more reliably than cable. MTP loves to disconnect during large file transfers.

    [–] Oha@lemmy.ohaa.xyz 3 points 1 year ago

    mtp is just terrible

    [–] clif@lemmy.world 3 points 1 year ago

    This is info I didn't know I needed. Thank you.

    [–] LainOfTheWired@lemy.lol 28 points 1 year ago (1 children)

    Just install termux. Then pkg install vim

    [–] yamapikariya@lemmyfi.com 19 points 1 year ago (1 children)

    I only have termux to flex on my friends by running neofetch.

    [–] MeanEYE@lemmy.world 9 points 1 year ago (1 children)

    I actually have full development environment set up on my phone. Combine that with bluetooth keyboard/mouse combo and I am good for about 85% of the work, if not more. Helps a lot not having to lug laptop around all the time.

    [–] Tangent5280@lemmy.world 2 points 1 year ago (1 children)

    Can you share your setup? Is it monitor compatible? Do you carry your own keyboard and mouse? How long will yhe battery last when using with a monitor? What do you do for package management?

    [–] MeanEYE@lemmy.world 8 points 1 year ago (1 children)

    I have Samsung Fold4. With pen I don't need mouse, but I do have a bluetooth mouse (Logitech M720) and iClever foldable keyboard. Most of my development is done in Vim as I do server side, so Python and similar. Termux does pretty much everything I need.

    I also carry USB C hub with me, which has HDMI and LAN adapter built-in, so I can further extend its use. Hub also has charge capabilities, so I can have a longer working hours. As far as external displays are concerned, I don't have any as I didn't need them really yet.

    [–] Tangent5280@lemmy.world 1 points 1 year ago (1 children)

    Great setup. Have you had any issues with body posture, or visibility in use? As in, do you feel like you have to strain to see stuff on the smaller screen?

    [–] MeanEYE@lemmy.world 2 points 1 year ago (1 children)

    I don't use it all that frequently but I have to be available pretty much 24/7. At times I did use it it wasn't much of a problem. Screen is pretty high resolution with enough high refresh rate that it feels natural. Keyboard is almost full-size so comfort wasn't a problem there either. Full desktop environment of course would be preferable but this works nicely. That can also be achieved with Android but desktop is then accessed through local VNC connection, of which am I am not a fan. Samsung's DeX is good enough for most of things, but on my device I can't activate it until I connect it to external display. Samsung's tablets on the other hand, can!

    [–] Tangent5280@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

    Nice; have you considered small form factor laptops, like the GPD mini-laptop or one of those box shaped mini computers? I suppose they make a lot less sense if you have to carry a seperate box around instead of just using your phone.

    I explored this idea of substituting my laptop for work (its a giant ~17 incher) with either something small I can carry around with me or something I can just leave locked in my work drawer or something; so I'm excited to talk to someone who had similar ideas and made it work.

    [–] MeanEYE@lemmy.world 2 points 1 year ago

    I considered many different options and foldable wasn't my first choice either. Initially I waited for Blackberry Key3, when they decided to stop making them to my disappointment. Foldable was my next choice because I really don't want to have a separate device. For a while I lugged my X1 Carbon with me, which is fairly light laptop but when you add charger and the rest of the gear it's not much lighter than any other machine.

    [–] oldfart@lemm.ee 13 points 1 year ago (3 children)

    Vim is so good on mobile! I never understood its odd shortcuts (hjkl, for example) until I got to use it on a crippled mobile keyboard.

    [–] tdawg@lemmy.world 6 points 1 year ago

    Vim's keybinding makes more sense if you look at older keyboard layouts. For instance the escape key use to be near the area we keep the caps lock key now, for a lot of models.

    [–] XTornado@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

    For a second I thought you were joking... but I guess the lack of arrows makes sense that you would like hjkl.

    [–] oldfart@lemm.ee 1 points 1 year ago

    I wasn't expecting it to be more convenient than native editors but it just was... At least for my fat fingers

    [–] SaltyIceteaMaker@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

    The reason for the hjkl thing is that the keyboard of vim's (maybe it was vi's idk) developer had no separate arrow key's but rather had said arrow keys printed on hjkl.

    Something like that:

    H← J↑ K↓ L→

    [–] GCostanzaStepOnMe@feddit.de 12 points 1 year ago (2 children)
    [–] ILikeBoobies@lemmy.ca 10 points 1 year ago (1 children)

    Vim is for mouse-less text editing

    It makes more sense on mobile than desktops for average people

    [–] GCostanzaStepOnMe@feddit.de 8 points 1 year ago* (last edited 1 year ago) (1 children)

    Not sure how you use vim but I need more than two thumbs.

    [–] ILikeBoobies@lemmy.ca 1 points 1 year ago (1 children)

    Seems like vim would be very inefficient

    [–] ComradeKhoumrag@infosec.pub 2 points 1 year ago

    Combined with a Bluetooth keyboard and ssh it's honestly not a bad emergency tool

    [–] mexicancartel@lemmy.dbzer0.com 11 points 1 year ago
    [–] Rustmilian@lemmy.world 5 points 1 year ago

    It's been around for quite a while, good to see it get an update.

    [–] knobbysideup@lemm.ee 4 points 1 year ago

    I have this installed because my password manager is :X

    [–] JetpackJackson@feddit.de 2 points 1 year ago (1 children)

    Can it use plugins like on neovim? I've had it installed for a bit but I've only used a default configuration so far

    [–] Euphoma@lemmy.ml 5 points 1 year ago (1 children)

    You could just install neovim on termux and get the full experience.

    [–] JetpackJackson@feddit.de 1 points 1 year ago (1 children)

    Oh, I keep hearing about termux but on my Fdroid it says it hasn't been updated in 2 years. Is it safe to use?

    [–] Euphoma@lemmy.ml 3 points 1 year ago (1 children)

    Yeah that seems about right, there hasn't been a new release since January of 2022. If you check the github, its still getting commits, but they aren't in an actual release yet.

    [–] JetpackJackson@feddit.de 1 points 1 year ago

    Ah ok, makes sense. I guess I'll install it and play around with it! I mean, there are worse things to get distracted by lol...

    [–] SaltyIceteaMaker@lemmy.ml 2 points 1 year ago (1 children)

    Wich repo/appstore? I can't find it on fdroid

    [–] yamapikariya@lemmyfi.com 2 points 1 year ago* (last edited 1 year ago)

    Auroradroid. ~~Possibly~~ is on IzzyOnDroid repo.

    [–] burgersc12@sh.itjust.works -1 points 1 year ago (1 children)

    Much prefer either nano or micro over vim

    [–] ebits21@lemmy.ca 9 points 1 year ago (1 children)

    You should use vim for very different reasons than nano or micro.

    [–] burgersc12@sh.itjust.works 2 points 1 year ago (3 children)

    Do i dare ask why? I just want a basic text editor i don't have to fight with to exit. I want to type, save, and exit, and maybe not in that order.

    [–] ebits21@lemmy.ca 18 points 1 year ago (1 children)

    So you want something like Nano.

    Vim is great for more complicated documents and programming because the modes allow you to fly around the document much faster. It’s not very useful unless you put the time into learning how to use it… and it’s not worth it for simple things imo.

    I use it to write work reports. It’s much faster for many things: one example I type dap and bam a whole paragraph is deleted, d5w and the next 5 words are deleted. I use snippets to compete reports like fill in the blanks (I have hundreds of snippets, I hit rpt then tab and a whole report skeleton is generated). Annoying long patient name? I hit CTRL-N and it fills out the name with only a few characters.

    Vim is actually just amazing for this kind of stuff.

    [–] zbecker@mastodon.zbecker.cc 3 points 1 year ago

    @ebits21 @burgersc12

    Oh shoot I didn't know about C-n. Thanks for that.

    [–] fraydabson@sopuli.xyz 6 points 1 year ago

    As someone who has been lightly using Linux for years but recently gotten more into it. I’ve always only ever used nano. But now I’m so into vim that when a program opens a config in nano I get confused when I can’t quit with :wq

    [–] thedeadwalking4242@lemmy.world 4 points 1 year ago (1 children)

    You don't have to fight to exit in vim or save it's 3 essential commands and I use nothing else :q, :wq, or just w it's not that hard

    [–] burgersc12@sh.itjust.works 0 points 1 year ago (1 children)

    Sorry, but i forgot to hit escape, now I need to figure out how to exit it without being able to easily type man vim because I got stuck in Vim again... I got sick of it, ctrl-x/s/q or whatever is much easier imo

    [–] thedeadwalking4242@lemmy.world 3 points 1 year ago (1 children)

    Oh no you have to one more key :(

    [–] burgersc12@sh.itjust.works 0 points 1 year ago

    And i have to memorize what : w q ! each do because I will use them all at some point. And i have to get used to all of this because?? Vim is slightly better for other people?? Fuck outta here, I'm sticking with nano/micro/whatever else is better than vim