Created
April 19, 2020 12:55
-
-
Save dmd/ad50262bbcc830f668b428f1442b3940 to your computer and use it in GitHub Desktop.
loooooong startup
This file contains 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
set nocp | |
" Plugins | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $HOME/.vimrc | |
endif | |
call plug#begin('~/.vim/plugged') | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'ervandew/supertab' " tab completion of words | |
Plug 'airblade/vim-gitgutter' " git changes in gutter | |
Plug 'fidian/hexmode' " :Hexmode | |
Plug 'dmd/vim-rsi' " readline style insertion, C-a C-e etc. | |
Plug 'ConradIrwin/vim-bracketed-paste' " automatically set paste | |
Plug 'tpope/vim-commentary' " gc to comment | |
call plug#end() | |
" better % matching | |
runtime macros/matchit.vim | |
let g:airline_theme='murmur' | |
let g:airline#extensions#hunks#enabled=0 "don't put changes in statusbar | |
" Enable the list of buffers (with just filename) | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
syntax enable | |
highlight LineNr ctermfg=240 ctermbg=233 guifg=#585858 guibg=#121212 | |
set display+=lastline " don't show @ for long lines | |
set encoding=utf-8 | |
set autoindent " Indent at the same level of the previous line | |
set backspace=indent,eol,start " Backspace for dummies | |
set expandtab " Tabs are spaces, not tabs | |
set smarttab " Smart tab | |
set softtabstop=4 " Let backspace delete indent | |
set tabstop=4 " An indentation every four columns | |
set shiftwidth=4 " Use indents of 4 spaces | |
set fileformats=unix,dos,mac " Use Unix as the standard file type | |
set hidden " Allow buffer switching without saving | |
set history=10000 | |
set hlsearch " Highlight search terms | |
set ignorecase " Case insensitive search | |
set smartcase " ... but case sensitive when uc present | |
set incsearch " Find as you type search | |
set number " Line numbering. I used to use relnumber but meh. | |
set laststatus=2 " Always show status line | |
set matchtime=5 " Show matching time | |
set modeline | |
set nojoinspaces | |
set scrolljump=5 " Line to scroll when cursor leaves screen | |
set scrolloff=3 " Minumum lines to keep above and below cursor | |
set shortmess=aoOtTI | |
set showcmd " Show partial commands in status line and Selected characters/lines in visual mode | |
set showmatch " Show matching brackets/parentthesis | |
set visualbell | |
set whichwrap+=<,>,h,l " Allow backspace and cursor keys to cross line boundaries | |
set wildignore+=*/tmp/*,*.o,*.obj,*.so,*swp,*.class,*.pyc,*.png,*.jpg,*.gif,*.zip | |
set wildmenu " Show list instead of just completing | |
set wildmode=list:longest,full | |
set updatetime=800 " make gitgutter and others update faster | |
" Visual shifting (does not exit Visual mode) | |
vnoremap < <gv | |
vnoremap > >gv | |
" jk as ESC | |
inoremap jk <ESC> | |
" disable Ex mode | |
nnoremap Q <nop> | |
" the trailing // makes it use complete path (foo/bar becomes foo%bar) | |
set directory=/tmp// | |
au BufRead,BufNewFile *.ircsearch set filetype=ircsearch | |
" n always goes forward, N always goes backwards | |
nnoremap <expr> n 'Nn'[v:searchforward] | |
nnoremap <expr> N 'nN'[v:searchforward] | |
" clear matches, update syntax highlighting in C-l | |
nnoremap <c-l> :nohlsearch<cr>:diffupdate<cr>:syntax sync fromstart<cr><c-l> | |
" always jump to line number if present | |
nnoremap gf gF |
This file contains 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
times in msec | |
clock self+sourced self: sourced script | |
clock elapsed: other lines | |
000.006 000.006: --- VIM STARTING --- | |
000.088 000.082: Allocated generic buffers | |
000.461 000.373: locale set | |
000.465 000.004: clipboard setup | |
000.469 000.004: window checked | |
000.915 000.446: inits 1 | |
001.160 000.245: parsing arguments | |
001.163 000.003: expanding arguments | |
007.796 006.633: shell init | |
008.149 000.353: Termcap init | |
008.165 000.016: inits 2 | |
008.337 000.172: init highlight | |
008.765 000.288 000.288: sourcing $VIM/vimrc | |
012.470 002.521 002.521: sourcing /Users/dmd/.vim/autoload/plug.vim | |
022.600 008.118 008.118: sourcing /usr/share/vim/vim81/filetype.vim | |
022.934 000.111 000.111: sourcing /usr/share/vim/vim81/ftplugin.vim | |
023.300 000.085 000.085: sourcing /usr/share/vim/vim81/indent.vim | |
024.544 000.380 000.380: sourcing /usr/share/vim/vim81/syntax/syncolor.vim | |
024.684 000.797 000.417: sourcing /usr/share/vim/vim81/syntax/synload.vim | |
024.722 001.200 000.403: sourcing /usr/share/vim/vim81/syntax/syntax.vim | |
026.936 000.647 000.647: sourcing /usr/share/vim/vim81/pack/dist/opt/matchit/plugin/matchit.vim | |
027.065 002.126 001.479: sourcing /usr/share/vim/vim81/macros/matchit.vim | |
029.067 001.269 001.269: sourcing /usr/share/vim/vim81/syntax/nosyntax.vim | |
029.941 000.285 000.285: sourcing /usr/share/vim/vim81/syntax/syncolor.vim | |
030.076 000.671 000.386: sourcing /usr/share/vim/vim81/syntax/synload.vim | |
030.113 002.729 000.789: sourcing /usr/share/vim/vim81/syntax/syntax.vim | |
030.332 021.074 004.184: sourcing $HOME/.vimrc | |
030.340 000.641: sourcing vimrc file(s) | |
031.340 000.155 000.155: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/init.vim | |
031.974 000.170 000.170: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/parts.vim | |
033.711 000.276 000.276: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/util.vim | |
033.841 003.099 002.498: sourcing /Users/dmd/.vim/plugged/vim-airline/plugin/airline.vim | |
034.276 000.059 000.059: sourcing /Users/dmd/.vim/plugged/vim-airline-themes/plugin/airline-themes.vim | |
035.376 000.316 000.316: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/autoload/gitgutter/utility.vim | |
036.219 000.213 000.213: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/autoload/gitgutter/highlight.vim | |
037.399 002.824 002.295: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/plugin/gitgutter.vim | |
038.160 000.415 000.415: sourcing /Users/dmd/.vim/plugged/vim-rsi/plugin/rsi.vim | |
038.621 000.160 000.160: sourcing /Users/dmd/.vim/plugged/vim-bracketed-paste/plugin/bracketed-paste.vim | |
039.276 000.363 000.363: sourcing /Users/dmd/.vim/plugged/vim-commentary/plugin/commentary.vim | |
040.232 000.145 000.145: sourcing /usr/share/vim/vim81/plugin/getscriptPlugin.vim | |
040.731 000.389 000.389: sourcing /usr/share/vim/vim81/plugin/gzip.vim | |
041.207 000.356 000.356: sourcing /usr/share/vim/vim81/plugin/logiPat.vim | |
041.400 000.063 000.063: sourcing /usr/share/vim/vim81/plugin/manpager.vim | |
041.929 000.431 000.431: sourcing /usr/share/vim/vim81/plugin/matchparen.vim | |
043.080 000.970 000.970: sourcing /usr/share/vim/vim81/plugin/netrwPlugin.vim | |
043.262 000.030 000.030: sourcing /usr/share/vim/vim81/plugin/rrhelper.vim | |
043.386 000.044 000.044: sourcing /usr/share/vim/vim81/plugin/spellfile.vim | |
043.670 000.211 000.211: sourcing /usr/share/vim/vim81/plugin/tarPlugin.vim | |
043.881 000.127 000.127: sourcing /usr/share/vim/vim81/plugin/tohtml.vim | |
044.214 000.253 000.253: sourcing /usr/share/vim/vim81/plugin/vimballPlugin.vim | |
044.510 000.201 000.201: sourcing /usr/share/vim/vim81/plugin/zipPlugin.vim | |
044.784 000.041 000.041: sourcing /usr/share/vim/vim81/pack/dist/opt/matchit/plugin/matchit.vim | |
044.798 004.277: loading plugins | |
044.890 000.092: loading packages | |
044.923 000.033: loading after plugins | |
044.934 000.011: inits 3 | |
047.804 002.870: reading viminfo | |
047.860 000.056: setting raw mode | |
047.877 000.017: start termcap | |
047.898 000.021: clearing screen | |
051.208 001.019 001.019: sourcing /usr/share/vim/vim81/scripts.vim | |
052.583 000.558 000.558: sourcing /usr/share/vim/vim81/ftplugin/vim.vim | |
054.169 000.491 000.491: sourcing /usr/share/vim/vim81/indent/vim.vim | |
073.549 003.790 003.790: sourcing /usr/share/vim/vim81/syntax/ruby.vim | |
077.068 002.171 002.171: sourcing /usr/share/vim/vim81/syntax/python.vim | |
082.263 027.035 021.074: sourcing /usr/share/vim/vim81/syntax/vim.vim | |
087.792 003.292 003.292: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions.vim | |
088.692 000.296 000.296: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/quickfix.vim | |
089.484 000.501 000.501: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline.vim | |
089.960 000.090 000.090: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/netrw.vim | |
090.606 000.140 000.140: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/section.vim | |
091.766 000.456 000.456: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/highlighter.vim | |
092.044 001.846 001.250: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/term.vim | |
092.892 000.223 000.223: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/whitespace.vim | |
093.588 000.169 000.169: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/wordcount.vim | |
094.122 000.344 000.344: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline.vim | |
094.533 000.118 000.118: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/autoshow.vim | |
095.169 000.167 000.167: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/tabs.vim | |
095.703 000.282 000.282: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/buffers.vim | |
108.788 000.127 000.127: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/themes.vim | |
109.168 001.044 000.917: sourcing /Users/dmd/.vim/plugged/vim-airline-themes/autoload/airline/themes/murmur.vim | |
119.027 000.830 000.830: sourcing /Users/dmd/.vim/plugged/vim-airline-themes/autoload/airline/themes/murmur.vim | |
146.847 000.294 000.294: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/builder.vim | |
147.509 000.160 000.160: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/default.vim | |
173.066 086.409: opening buffers | |
173.590 000.238 000.238: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/autoload/gitgutter.vim | |
175.096 000.154 000.154: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/autoload/gitgutter/async.vim | |
175.448 000.165 000.165: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/autoload/gitgutter/debug.vim | |
219.522 018.001 018.001: sourcing /Users/dmd/.vim/plugged/vim-gitgutter/autoload/gitgutter/diff.vim | |
227.109 035.485: BufEnter autocommands | |
227.128 000.019: editing files in windows | |
227.802 000.674: VimEnter autocommands | |
227.809 000.007: before starting main loop | |
229.181 000.403 000.403: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/ctrlspace.vim | |
229.754 000.291 000.291: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/tabws.vim | |
231.016 000.419 000.419: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/builder.vim | |
231.593 000.189 000.189: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/buflist.vim | |
237.963 000.213 000.213: sourcing /Users/dmd/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/formatters/default.vim | |
259.089 029.765: first screen update | |
259.091 000.002: --- VIM STARTED --- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment