Is there an up-to-date community-driven1 website which lists best practices regarding settings in .vimrc
, plugins and/or tips to use vim? What is the best way to get to know up-to-date community-driven best practice regarding vim?
The Problem
I find that I spend too much time customizing my .vimrc
after having read something about vim in the internet, only to later find out my customization was suboptimal. The same is sometimes true for learning habits how to use vim or for plugins.
Of course different people will judge different on what is suboptimal, but often enough I find myself agreeing to things a community of active vim users recommends the most. For example, posts/answers here or on reddit with a lot of votes usually contain quality information.
However, StackExchange does not want open-ended question about best practices for vim. And on Reddit a post usually only discusses one or two topics. Just counting how often something appears in .vimrc
s or how often a plugin is starred on Github also is no option, it leads to suboptimal conclusions.
I would like to use vim in a well-proven way with the input of a lot of users, and a good portion of that should ideally be a best practice site.
Example what I look for
A constantly available list like the following one, possibly sortable and with additional comments from other users:
99 votesplugins If you use plugins, use vim-plug as a plugin manager
90 votes.vimrcplugin When building your .vimrc
, start with an empty one. Only add what you
understand. A good place to start are the settings in vim-sensible.
80 votesplugins Syntastic is a great syntax checker
55 votes.vimrc Set your <leader>
to space with let mapleader = "\<space>"
40 votesgeneral Remap Capslock to Control - to press Esc
train yourself to use <C-[>
30 votesplugins If you use plugins, use Vundle as a plugin manager
14 votesgeneral Instead of di(
use dib
, also for other verbs. For curly braces use diB
12 votesgeneral Remap Capslock to Esc
10 votes.vimrc It is a great idea to use Thisfunction()
in your .vimrc
if you want...
Footnotes
1. With community driven I do not mean sites like vim.wikia.com where users collaborate, but rather websites where people can cast up- and downvotes