Earlier quoted context omitted.
I use `jk` or `jj` instead of esc. Its so much easier imap jj
I tried this, but it (understandably) caused a delay whenever I typed j alone in insert mode
Vim – Minimal Setup Explained
71–80 of 114 posts
Re: Vim – Minimal Setup Explained
#72Many decades ago, you had to resort to abbreviations so that you could use memory in the most efficient way possible. Computer hardware at that time was more expensive than labor. People having to adapt to how computers worked was the doctrine at that time. But in 2022, this is no longer true. Even the most limited platform you can think of can comfortably run vim. A $5 Raspberry Pi Zero is overkill for vim. And now,…
Re: Vim – Minimal Setup Explained
#73Earlier quoted context omitted.
I use `jk` or `jj` instead of esc. Its so much easier imap jj
I tried this, but it (understandably) caused a delay whenever I typed j alone in insert mode
Re: Vim – Minimal Setup Explained
#74While 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 confi…
defaults.vim was and still is an abject idea that we sadly can't get rid off, now that it has been there for a few years. The least desirable property of defaults.vim is also present in sensible or in system-wide vimrcs written by package maintainers: you get a black box where things are added/changed/removed without your knowledge or consent. "Your" so-called minimal setup is going to evolve over time, but not accor…
I've given up on vim. I'm now teaching myself Emacs on my own machine, and replace vim with neovim everywhere I can.
Re: Vim – Minimal Setup Explained
#75While 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 confi…
defaults.vim was and still is an abject idea that we sadly can't get rid off, now that it has been there for a few years. The least desirable property of defaults.vim is also present in sensible or in system-wide vimrcs written by package maintainers: you get a black box where things are added/changed/removed without your knowledge or consent. "Your" so-called minimal setup is going to evolve over time, but not accor…
Also, amen. Having used vi since before vim, I actually have a few settings to restore vi features and quirks that I like ( cpoptions+=vxZ!$- ).
Re: Vim – Minimal Setup Explained
#76[1] https://marketplace.visualstudio.com/items?itemName=jonsmith...
Re: Vim – Minimal Setup Explained
#77The only thing I've really struggled with when trying to get into using vim full-time is navigating my project. In VSCode I basically hit CTRL+SHIT+F -> "portion_of_a_function_name_or_something" constantly. I abuse the heck out of global search. Is there a way of navigating your project in vim that's similar/easier? How do vim people quickly navigate their code without going "what was the name of that file with that…
Vim has the concept of and (you can :h these for more info), which are basically the things that vim will jump across when you press 'w' or 'W'. You can combine this with grep and the location list to find symbol usage across multiple files. nnoremap g :grep You can then use :cnext and :cprev (or focusing the window and selecting an entry) to navigate between them. As others have stated, you can also use ctags (plugi…
Re: Vim – Minimal Setup Explained
#78I prefer VsCode these days - but every now and then a Vim macro is needed - the rare case where multiple cursors won't cut - I just C-p Open in Vim [1]... for fun and saving a few minutes (not always) [1] https://marketplace.visualstudio.com/items?itemName=jonsmith...
Re: Vim – Minimal Setup Explained
#79Re: Vim – Minimal Setup Explained
#80Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.