Email or username:

Password:

Forgot your password?
Ron Gilbert šŸ“ā€ā˜ ļøšŸ“ā€ā˜ ļøšŸ“ā€ā˜ ļø

Every year I say: "this is a year I finally use VIM". It last about 1 day. It's the model-ness that messes me up. I'm in command mode and I start typing like I'm in insert mode and bad things happen.

47 comments
Jason Lefkowitz

@grumpygamer This is always the challenge with vim.

The good news is that it is the biggest challenge. Once you climb that hill, it's all downhill from there. But man, climbing the hill takes work

mr_tenor

@grumpygamer
I've heard it described as "vi turns your keyboard into a game controller"

vinnie

@grumpygamer hey Ron, a bit off-topic but did you see Tim Cain posted a video reading one of your poems? I find it really cool of him

sertoo

@vinnie @grumpygamer He posted it a couple days ago, check his feed! (Edit: yesterday)

vinnie

@sertoo @grumpygamer thanks! šŸ¤¦ā€ā™‚ļøšŸ¤¦ā€ā™‚ļøšŸ¤¦ā€ā™‚ļø

Ertain

@grumpygamer I saw that, too. Of course, I saw it because Ron posted the video.

Space Hobo Actual

@grumpygamer
Meanwhile I can never work in GUI text inputs because I keep whacking ESC every time I stop typing in text.

Juan

@grumpygamer why you want to learn vim? I mean, why not emacs for example? Or whatever you are *already using*?

(disclaimer: I've been using vim for +20 years, I can't use anything else, but I see that it may not be for everybody)

mrkite

@grumpygamer @reidrac Nah, the cool kids moved from vim to Helix... although it's still modal so you'd have the same problems.

MadMike77

@reidrac Emacs on non-US keyboards is a lot harder to learn than vim.
I know that it's still possible to use on non-US layout (mine is DE_CH btw) but it's another hoop to take and most emacs tutorials don't care to even hint at that possible problem.

cmdrSprocket

@MadMike77 @reidrac on tablets (no direct esc key) vim is kinda painful.

Juan

@cmdrSprocket @MadMike77 tablets aren't designed for typing, IMHO.

I love a nice mechanical keyboard, not generally fan of laptop keyboards either šŸ¤·

Steven G. Harms

@reidrac @cmdrSprocket @MadMike77 oh hi! Iā€™m using blink on iPad + mosh + external keyboard and have a very reliable and light coding platform (paired to virtual private server).

Also control+[ is a fine escape. I also have ā€œjkā€ bound to escape. I'd argue that having your home row nonsense key pair ('jk') be escape is a highly-efficient optimization.

Juan

@MadMike77 that's true, but also true for general programming. Some layouts are just worse.

I'm on ISO UK at the moment despite not being my native layout, and it is much better. Less "chords" for common things you write a lot in most programming languages.

I tried US ANSI a couple of times but that enter key... anyway.

Tommy Thorn

@MadMike77 @reidrac Iā€™ve lived in Denmark and France for half my life and learned to type in Denmark. At no point have I ever wanted a non-US layout. 99.9% of everything I type is in english anyway and for the rare exceptions, the macOS handling of accents and international keys is fantastic IMO.

Emacs is an absolute power tool and Iā€™m disappointed and frustrated with all the non-emacs editors, every time (VS Code no exception)

Raul Portales

@reidrac @grumpygamer I've been using it for 20+ years too. Nowadays I only use it if I'm doing something quick on the command line, not everyday, but often enough

Pixel Doge

@Sh41 @reidrac @grumpygamer same here, about 20 years of Vim brain damage usage, the only change was moving over to NeoVim a few years back.

SpaceLifeForm

@grumpygamer

Common obstacle for beginners to learn to overcome.

The easiest way to not get into a mess is to always hit ESC to know for sure what your mode is.

#VIM

David

@SpaceLifeForm @grumpygamer
I remember when learning, I gained the habit to tap Esc while thinking/not typing to ensure I kept booting myself into normal mode.

I also found the most beneficial part of statusline plugins (like vim-airline) was the mode display to give a visual cue -- especially if it only shows a mode in the active buffer. It's far more effective than the built-in`set showmode` because it's always there.

SpaceLifeForm

@idbrii @grumpygamer

It the olden daze of vi (not vim) there were no plugins, so ESC was your only escape.

MacBalance

@grumpygamer Vi seems great for wonky connections but I prefer something sane for anything more than editing a few lines in a config file.

Swift

@grumpygamer fwiw, that's normally a side effect of slightly too long hanging out in insert; it's a good habit to really get used to "insert is a thing I do as part of an editing operation". But also, I'm a big advocate for using whatever you get on with šŸ˜

hambier

@grumpygamer Ha, for me it's the converse: text fields often have gratuitous jjjjjjj or ddp and such or I'm hitting Esc for no reason. šŸ™ƒ

ima

@grumpygamer I used to think this too. Ended up giving it a proper try and eventually came to like it. I've since switched to kakoune however, which is similar to vim, but simpler and just as powerful.
Kakoune does selection->verb instead of the other way around.

Simounet

@grumpygamer Did you already tried to use stuff like Vim Airline to get a visual feedback of the mode you are in? github.com/vim-airline/vim-air

Chris Ahchay

@grumpygamer I look at these things like I'm in lost in space or something, if i find myself stuck in an old school Unix environment and I need to edit a file to save Will Robinson or whatever, then I know i can do. But there are better options out there

For the love of $diety i used to use edlin on a regular basis, I can do anything!

ggn

@grumpygamer Maybe you can resort to opening it once per year with a file and try playing the TECO game

A satirical essay on computer programming, "Real Programmers Don't Use Pascal", suggested that a common game for TECO fans was to enter their name as a command sequence, and then try to work out what would happen. The same essay in describing TECO coined the acronym YAFIYGI, meaning "You Asked For It You Got It" (in contrast to WYSIWYG).
synlogic

@grumpygamer I was bit by that too early. the trick that worked for me is adopting habit of, if I'm ever not 100% sure which mode I'm in, to hit ESC key. I usually tap it a few times in quick succession in redundancy as a psychological thing to be sure. After that I know I'm in a fixed deterministic predictable "baseline state" and then next I can press whatever keys I want to do commands or to do edits.

When in doubt hit ESC. Then there is no doubt.

synlogic

@grumpygamer if your next game is named The Secret of Mode Predictability in Vim on Monkey Island I expect royalties!

John Rockefeller

@grumpygamer The key to getting over this is to understand that you're supposed to be in command mode by default. Edit mode is a specific operation you do when you need to then you come back to command mode right after.

Raptor :gamedev:

@grumpygamer i just set up freebsd yesterday and the first package I installed when I saw all they pack in the image is basic vi was nano. life is not long enough to edit all the config files in vi.

patchexempt

@grumpygamer I recommend it and also sort of don't. it's a great way to edit text, but it also breaks your brain for any other ways of editing text. you develop opinions about other editor's vim emulation. you try to figure out how to get it into your browser. you press escape at inopportune times. I'm like half serious, but I have been using it for 15 years and it's a bit of a curse, and I'll probably never do anything else.

Nikhil šŸ§

@grumpygamer then it's clearly not for you and you should move on šŸ¤·šŸ¾ā€ā™‚ļø not everything is meant for everyone. Why feel bad about it?

JP

@grumpygamer en.wikipedia.org/wiki/The_Huma Raskin was basically correct in most respects but doomed to be ignored because some of his conclusions were too radical and people didn't know how to get there from the current GUI status quo

Josh Simmons

@jplebreton @grumpygamer one interesting thing about modal interfaces like vim, is that you end up habitually spamming the "default mode" key after / before actions, so it effectively becomes a prefix to your work. I guess it's a bit like Ctrl+S spam. It becomes reflexive and you no longer question it, but that only happens for invested users and for everyone else they're struggling, losing work, or getting into weird modes.

Davitto-Kun

@grumpygamer Make your own text editor, then sell it on Steam. It would be a cool experiment!

Diego Barros

@grumpygamer I tried VIM over many, many years. Try it, give up, rinse, repeat. Then I tried Neovim and it finally stuck. It was nothing specific about Neovim, but I think that part of it was that using Kickstart with Neovim gave me a nice configured VIM environment that was ready to go.

github.com/nvim-lua/kickstart.

Ric

@grumpygamer sometimes I accidentally open something in vim and have to spend the next 6 weeks trying to figure out how to exit šŸ˜©

Simeon Nedkov

@grumpygamer It clicked for me when I installed it as a plug-in in my existing IDE.

The transition is much smoother because you can use your old habits and remain productive while exploring and learning new ones.

Aral Balkan

@grumpygamer Have you given Helix Editor a shot? I never thought Iā€™d end up using a modal editor but here we are :)

helix-editor.com

Fish Id Wardrobe

@grumpygamer I suppose you've tried turning on the thing that puts "INSERT MODE" on the status line when you are in insert mode?

Go Up