TODO2: create phylogenetic tree of vimrcs
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
3. Make sure pathogen is available and execute pathogen#infect() is in ~/.vimrc
2. cd ~/.vim/bundle
3. git clone git://github.com/tpope/vim-fugitive.git
#Result
syntax on > set nocompatible
Most common vim config out of 13759 vimrc's
syntax on69.79%set number58.58%set nocompatible57.35%filetype plugin indent on52.06%set expandtab51.86%set laststatus=247.60%set hlsearch46.29%set incsearch39.17%set ignorecase38.12%let mapleader=","38.01%set background=dark37.71%set backspace=indent,eol,start36.34%set ruler33.57%set autoindent33.42%set tabstop=231.54%set wildmenu30.63%set encoding=utf-829.40%set t_Co=25629.22%set smartcase28.96%set shiftwidth=428.55%set tabstop=428.22%set showcmd27.28%set shiftwidth=226.22%set nobackup25.63%set cursorline25.47%filetype off25.07%autocmd!25.02%set mouse=a24.40%set list22.02%set showmatch21.45%syntax enable19.35%set noswapfile19.33%filetype plugin on19.07%set hidden18.85%set smartindent18.59%autocmd BufReadPost *18.45%set smarttab17.64%colorscheme solarized17.53%filetype on17.31%set softtabstop=417.09%set showmode16.97%set title16.77%set noerrorbells16.75%set relativenumber15.19%set nowrap15.02%set ttyfast14.88%set scrolloff=314.13%set clipboard=unnamed13.98%filetype indent on13.84%set rtp+=~/.vim/bundle/vundle/13.45%set softtabstop=213.01%set nowritebackup12.61%set gdefault11.55%set undodir=~/.vim/undo11.44%set autoread11.36%set modeline11.09%let save_cursor=getpos(".")10.58%set backupdir=~/.vim/backups10.57%set directory=~/.vim/swaps10.33%let old_query=getreg('/')10.32%set undofile10.10%set nostartofline10.04%set splitright9.61%set splitbelow9.07%set rtp+=~/.vim/bundle/Vundle.vim9.06%set shortmess=atI8.84%nnoremap k gk8.77%nnoremap j gj8.76%set wrap8.72%set binary8.07%set noeol8.05%set encoding=utf-8 nobomb7.94%set esckeys7.89%set guioptions-=T7.88%colorscheme molokai7.78%let g:airline_powerline_fonts=17.55%Plugin 'gmarik/Vundle.vim'7.54%set wildmode=list:longest,list:full7.46%set numberwidth=57.46%function! StripWhitespace()7.44%set visualbell7.39%autocmd BufNewFile,BufRead *.json setfiletype json syntax=javascript7.39%set fileencoding=utf-87.35%noremap <leader>W :w !sudo tee % > /dev/null<CR>7.32%au BufReadPost * set relativenumber7.04%set exrc6.95%set secure6.90%nnoremap Y y$6.76%vnoremap < <gv6.59%vnoremap > >gv6.56%let g:Powerline_symbols='fancy'6.52%set shiftround6.45%set termencoding=utf-86.37%set history=10006.34%set incsearch6.32%set novisualbell6.29%nnoremap ; :6.29%set laststatus=26.26%set autoindent6.17%set lazyredraw6.14%
#Plot
Strangely it doesn't follow the power law distribution. Likely because some settings are highly correlated with the others.

#Data Repository list is queried from http://ghtorrent.org/dblite/
select * from projects where language = 'VimL' and name = 'dotfiles'