What does HackerNews think of vim-sensible?
sensible.vim: Defaults everyone can agree on
It gets a bit weirder from there. If you pick vim for example theres a whole lot of customization rabbit holes you can go down. My advice is to find some sensible defaults and layer in stuff as you need it from there. vim-sensible[0] is a good start.
Good luck!
You can either copy the settings you are interested in or source it entirely in your vimrc file:
source $VIMRUNTIME/defaults.vim
---Here's some more related resource links:
* stackoverflow: useful .vimrc tips - (https://stackoverflow.com/q/164847/4082052)
* vi.stackexchange: How do I debug my vimrc file? - (https://vi.stackexchange.com/q/2003/1616)
* vim-sensible - (https://github.com/tpope/vim-sensible)
* minimal vimrc for new users - (https://gist.github.com/benmccormick/4e4bc44d8135cfc43fc3)
* Vim Configuration From Scratch - (https://marcgg.com/blog/2016/03/01/vimrc-example)
* vimconfig: generate `.vimrc` by selecting options - (https://vimconfig.com/)
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).
In the spirit of that reddit thread, my only tip is to have a few full runs at vimtutor and then simply buy both of Drew Neil's excellent books²³. Structured learning from domain experts, not piecemeal randomness from our fellow internet commenters. Drew's free vimcasts⁴ are great too, and give a taste of the quality you'll find in his books.
JNRowe leans back to chew on some piecemeal randomness
¹ https://github.com/tpope/vim-sensible
² https://pragprog.com/book/dnvim2/practical-vim-second-editio...
For me vim-sensible [1] has a more useful set of defaults (although more than five lines). Also, the readme of that project lists benefits of using a universal set of defaults.
Also, use vim-plug [3] with few plugin like ctrlp, nerdtree, nerdcommenter and vim-simple-complete [4].)
[1] https://github.com/tpope/vim-sensible
[2] https://github.com/maxboisvert/vim-simple-defaults
[3] https://github.com/junegunn/vim-plug
[4] https://github.com/maxboisvert/vim-simple-complete
I am the author of [2] and [4].
https://github.com/tpope/vim-sensible
That's pretty much all I have, plus a few personal shortcut keys and some syntax highlights that aren't included in vanilla vim.
It's pretty short, I recommend copying it to your .vimrc, understanding every line (:help) and modifying to taste.
- neovim now follows the XDG spec: ~/.vimrc is now ~/.config/nvim/init.vim, etc.
- the viminfo files were replaced by a new system, "shada" (for shared data)
- lots of default settings have changed so it is more sensible[^1] by default
The rest is all the new features (when compared with vim):
- async execution (`jobstart()` et al),
- the extensions to the plugin system, so plugins can run truly asynchronously,
- the rpc api, that allows for extended clients.
I might be fogetting some things, but these are imho the most outstanding things.
If you're building a new vimrc or want a common ground for pairing, I would recommend checking out [vim-sensible](https://github.com/tpope/vim-sensible) by tpope. It's a vim plugin that provides a set of sensible default options.
Vim is by default intended to be compatible with some historical implementation of vi. In my opinion, it doesn't make any sense any more, but I guess there is some reasoning behind the decision.