General Purpose Cheatsheets
Commands I forget a lot
:set [setting-name]?to view the current setting value.
:echo &rtpto view the runtime path of files that vim checks when running functions.
:help rtpfor more.
- when you want to reload
.vimrcwithout leaving vim, execute
zatoggle single-fold open or closed
The autoload directory will reactively load files as you need them, as opposed to some otherwise upfront load that could result in a slow startup. This is especially relevant for larger libraries, or for when you have many libraries. I understand it as lazy loading, essentially. I.e., load the file only when you are literally about to execute a function from within it.