10

"I can learn how to use vim in 5 minutes"

Said no one (ever)

Comments
  • 3
    Honestly, I never got around to learning how to use vim to its full potential. The only thing I managed to learn was
    vi helloworld.c
    :wq
  • 1
    @tild3 you could also do that with :x There, you learnt something new
  • 3
    @tild3 that's enough! I've met programmers who reboot their machine in order to exit vim
  • 0
    @committedblock5 That's not a problem of vim, but the programmers.
  • 2
    I use vim for everything I can at the moment.

    Learning how stuff works and having to remember things stops me becoming an auto complete zombie, and I can splay all my different vim windows (vindows?) across my two monitors and multiple workspaces. It means I can see everything and fix stuff faster than I can in an IDE.

    I don't need to use many features.
    :w to save when I've made an edit and only need to rebuild with make, which I do from another terminal window.
    :wq to save and exit once I'm totally done, but that doesn't happen for days.
    :q! when I panick and know I've messed up horrifically since my last write.
    :/borkbork to search for occurrences of borkbork in the file or whatever else.
    :20 to jump to line 20 or another line.

    Perhaps I'm not lightning fast (I know I could be using more features) but I'm pretty happy/ignorant/stressless.
    You can even choose how many spaces tabs are read to be, solving tons of readability problems. Vim is easy to use.
  • 2
    Well basic usage would take 5 minutes at most since all you would have to learn is esc+:wq, esc+q!, and i

    but at that point it's no more useful than notepad. if you take about an hour to watch a youtube video on tmux+vim and practice for about another hour it becomes alot more useful than alot of ides I have used in the past
  • 2
    @MaxMayo try to constrain yourself to learn one new move/feature each week. I've made it since the last three months and I really love to see how my vim skills made me code faster, feeling great about it, and, in a strange way, think differently.
    The whole point of vim is to manipulate your code without even think about it, by having gestures progressively becoming habits.

    cf. this great talk on YouTube : https://youtu.be/_NUO4JEtkDw
Add Comment