Live data from Hacker News

Vim – Minimal Setup Explained

guckes.net

1–10 of 114 posts

Re: Vim – Minimal Setup Explained

#2
While the information in there is good, a bunch of the settings are now redundant¹. The ones that jumped out to me were esckeys, ruler and showcmd.

Not that I'm saying you can't — or shouldn't — re-set options, just that the linked documentation is a little dated. FWIW, I personally re-set a couple of default options mostly so that I have a point of reference for how an option works when I'm digging about in my config.

I'm of the opinion that the combination of recent vim and Tim Pope's sensible.vim² is The Minimal Setup™.

¹ The site says the last update was 2014, and back then $VIMRUNTIME/defaults.vim wasn't a thing for example(7.4.2111).

² https://github.com/tpope/vim-sensible

Re: Vim – Minimal Setup Explained

#4
One of the things that annoys me about default vim (nvim more exactly) behavior is that it shifts the cursor left when exiting Insert mode. I use this to disable it:

    au InsertLeave * :normal `^
That goes along with this:

    set virtualedit=block,onemore

Re: Vim – Minimal Setup Explained

#5
For me, minimal setup means installing on a fresh machine. At this point, my vimrc automatically installs plugins if they're not installed.. otherwise it's one command. So it's just copy/paste and maybe one run command, and then vim environment is exactly the same on the new machine (it auto downloads).

Re: Vim – Minimal Setup Explained

#7

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

I've just got used to over time. It's gotten to the point I accidently use vi keybindings in other applications. Luckily there's keybindings in common applications e.g. typing / followed by a search phrase works in Firefox as it does in Vi which is pretty cool.
Post reply on HN