eigenvimrc
eigenvimrc copied to clipboard
1 vimrc 1 vote
TODO2: create phylogenetic tree of vimrcs TODO3: add all options from option.c (see src/nvim/option.c) TODO4: cover the entire github periodically
This script scrapes vimrc's hosted in github and returns the most commonly used vim configurations.
python eigenvimrc.py
The "voting" process may iterate as follows:
def vote(default):
vimrcs = people_curate_their_vimrc()
sleep(a_month)
new_default = most_common_50_percent(vimrcs)
if new_default != default:
return vote(new_default)
else:
return new_default
Install
- Make sure pathogen is available and
execute pathogen#infect()is in~/.vimrc cd ~/.vim/bundlegit clone git://github.com/rht/eigenvimrc.git
Result
set nocompatible > syntax on
Most common vim config out of 13759 vimrc's
set nocompatible83.33%syntax on79.78%set number74.55%set expandtab71.10%set incsearch68.44%set hlsearch67.92%set laststatus=267.76%filetype plugin indent on67.59%set ruler60.38%set ignorecase59.67%set autoindent53.00%set showcmd50.05%set backspace=indent,eol,start47.30%set wildmenu45.68%set background=dark40.45%let mapleader=","39.67%set smartcase38.73%filetype off37.95%set tabstop=236.87%set shiftwidth=436.79%set showmatch36.66%set tabstop=436.55%set cursorline36.49%set t_Co=25635.90%set nobackup34.89%set shiftwidth=234.49%set encoding=utf-833.50%set mouse=a32.01%set hidden30.77%set showmode27.84%set smarttab27.20%set noswapfile26.27%set nowrap26.16%set title25.41%autocmd!25.02%set list25.00%set noerrorbells23.56%filetype plugin on23.10%syntax enable22.85%set smartindent22.26%set softtabstop=421.98%set scrolloff=321.14%filetype on21.08%set relativenumber19.26%autocmd BufReadPost *18.46%set autoread18.45%set softtabstop=218.16%colorscheme solarized18.00%set ttyfast17.73%set clipboard=unnamed17.62%filetype indent on17.41%set gdefault16.73%set undofile14.96%set visualbell14.88%set nostartofline14.38%set nowritebackup14.37%set splitright14.36%set history=100014.35%set splitbelow13.79%set rtp+=~/.vim/bundle/vundle/13.55%set wrap13.18%set history=5012.84%set modeline12.42%set shortmess=atI12.38%set guioptions-=T11.91%set shiftround11.75%set undodir=~/.vim/undo11.74%set backupdir=~/.vim/backups10.76%set wildmode=list:longest10.75%set esckeys10.75%set encoding=utf-8 nobomb10.67%let save_cursor=getpos(".")10.59%set directory=~/.vim/swaps10.36%let old_query=getreg('/')10.32%set backspace=29.46%set lazyredraw9.14%set rtp+=~/.vim/bundle/Vundle.vim9.13%nnoremap k gk8.77%nnoremap j gj8.76%set backup8.71%colorscheme molokai8.23%set binary8.10%set noeol8.06%set linebreak7.99%set nofoldenable7.98%set numberwidth=57.92%Plugin 'gmarik/Vundle.vim'7.87%set novisualbell7.78%let g:airline_powerline_fonts=17.76%set fileencoding=utf-87.74%set wildmode=list:longest,list:full7.66%set exrc7.58%function! StripWhitespace()7.44%set secure7.44%autocmd BufNewFile,BufRead *.json setfiletype json syntax=javascript7.40%noremap <leader>W :w !sudo tee % > /dev/null<CR>7.33%vnoremap < <gv7.21%set foldenable7.19%vnoremap > >gv7.17%set foldmethod=indent7.07%
Colorscheme stat
- solarized 25.00%
- molokai 11.44%
- desert 6.19%
- badwolf 4.33%
- jellybeans 3.99%
- github 2.88%
- default 1.86%
- hybrid 1.84%
- vividchalk 1.72%
- railscasts 1.71%
Plugin manager stat
vam: 0.34% vundle: 10.39% neobundle: 4.40% others or none: 69.96% dein: 0.00% pathogen: 14.91%
Plot
Strangely it doesn't follow the power law distribution. Likely because some settings are highly correlated with the others.

Data
Last updated Mar 31 2017. Repository list is queried from http://ghtorrent.org/dblite/
SELECT * FROM projects WHERE language = 'VimL' AND ((name = 'dotfiles') OR (name = 'vimrc'))