Created
August 17, 2015 10:11
-
-
Save nikhgupta/86011b5ab70fb492ec52 to your computer and use it in GitHub Desktop.
Debug script for vim-bundler with mini vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pwd | |
/tmp/bundle | |
$ ls -al . | |
total 4 | |
drwxr-xr-x 3 nikhgupta wheel 102 Aug 17 15:03 ./ | |
drwxrwxrwt 16 root wheel 544 Aug 17 14:55 ../ | |
$ cat ~/Code/__dotfiles/minivimrc/vimrc | |
set nocompatible | |
set keywordprg=":help" | |
set autoindent | |
set backspace=indent,eol,start | |
set ttimeout | |
set ttimeoutlen=50 | |
set incsearch | |
set hlsearch | |
set laststatus=2 | |
let mapleader = "," | |
let g:mapleader = "," | |
nnoremap <leader>v <C-w>v<C-w>l | |
nnoremap <leader>s <C-w>s | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
nnoremap <silent> <leader>DD :exe ":profile start profile.log"<cr>:exe ":profile func *"<cr>:exe ":profile file *"<cr> | |
nnoremap <silent> <leader>DP :exe ":profile pause"<cr> | |
nnoremap <silent> <leader>DC :exe ":profile continue"<cr> | |
nnoremap <silent> <leader>DQ :exe ":profile pause"<cr>:noautocmd qall!<cr> | |
set shell=$SHELL | |
set rtp+=~/Code/__dotfiles/minivimrc | |
call pathogen#infect("/tmp/bundle/{}") | |
filetype plugin indent on | |
syntax enable | |
$ rails new test_app -q --skip-bundle; ls test_app | |
Gemfile README.rdoc Rakefile app/ bin/ config/ config.ru db/ lib/ log/ public/ test/ tmp/ vendor/ | |
$ cd test_app; bundle install >/dev/null; cd ..; ls test_app | |
Gemfile Gemfile.lock README.rdoc Rakefile app/ bin/ config/ config.ru db/ lib/ log/ public/ test/ tmp/ vendor/ | |
$ echo $SHELL | |
/bin/zsh | |
$ time vim -u ~/Code/__dotfiles/minivimrc/vimrc +q | |
vim -u ~/Code/__dotfiles/minivimrc/vimrc +q 0.04s user 0.01s system 88% cpu 0.061 total | |
$ time vim -u ~/Code/__dotfiles/minivimrc/vimrc test_app/app/controllers/application_controller.rb +q | |
vim -u ~/Code/__dotfiles/minivimrc/vimrc +q 0.12s user 0.06s system 89% cpu 0.193 total | |
$ time SHELL=/bin/sh vim -u ~/Code/__dotfiles/minivimrc/vimrc test_app/app/controllers/application_controller.rb +q | |
SHELL=/bin/sh vim -u ~/Code/__dotfiles/minivimrc/vimrc +q 0.12s user 0.05s system 87% cpu 0.199 total | |
$ ln -s ~/Code/__dotfiles/vim/bundle/vim-bundler . | |
$ ls -al . | |
total 35 | |
drwxr-xr-x 5 nikhgupta wheel 170 Aug 17 15:09 ./ | |
drwxrwxrwt 16 root wheel 544 Aug 17 14:55 ../ | |
drwxr-xr-x 18 nikhgupta wheel 612 Aug 17 15:07 test_app/ | |
lrwxr-xr-x 1 nikhgupta wheel 55 Aug 17 15:09 vim-bundler -> /Users/nikhgupta/Code/__dotfiles/vim/bundle/vim-bundler/ | |
$ time vim -u ~/Code/__dotfiles/minivimrc/vimrc test_app/app/controllers/application_controller.rb +q | |
vim -u ~/Code/__dotfiles/minivimrc/vimrc +q 0.28s user 0.14s system 87% cpu 0.468 total | |
$ time SHELL=/bin/sh vim -u ~/Code/__dotfiles/minivimrc/vimrc test_app/app/controllers/application_controller.rb +q | |
SHELL=/bin/sh vim -u ~/Code/__dotfiles/minivimrc/vimrc +q 0.28s user 0.13s system 86% cpu 0.470 total | |
$ time ruby -rubygems -e "puts Gem.path.join(%(;))" | |
/Users/nikhgupta/.gem/ruby/2.1.0;/usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0 | |
ruby -rubygems -e "print Gem.path.join(%(;))" 0.06s user 0.03s system 95% cpu 0.096 total | |
$ time ruby -rrbconfig -e "puts RbConfig::CONFIG[\"ruby_version\"]" | |
2.1.0 | |
ruby -rrbconfig -e "print RbConfig::CONFIG[\"ruby_version\"]" 0.06s user 0.03s system 94% cpu 0.089 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment