# HG changeset patch # User Ludovic Chabant # Date 1458014495 25200 # Node ID 4d73159f56ca0c5bf2ed69c2ef7c69a2296dfeac # Parent 67e6ade3a45100a32a59dea2f777d653f571f925 Use pathogen as a sub-repo, plus a few Vim tweaks. diff -r 67e6ade3a451 -r 4d73159f56ca .hgsub --- a/.hgsub Sun Mar 13 15:48:31 2016 -0700 +++ b/.hgsub Mon Mar 14 21:01:35 2016 -0700 @@ -18,6 +18,8 @@ vim/bundle/vimroom = [git]https://github.com/mikewest/vimroom.git vim/bundle/solarized = [git]https://github.com/altercation/vim-colors-solarized.git vim/bundle/fugitive = [git]https://github.com/tpope/vim-fugitive.git +vim/bundle/pathogen = [git]https://github.com/tpope/vim-pathogen.git +vim/bundle/sleuth = [git]https://github.com/tpope/vim-sleuth.git vim/bundle/syntastic = [git]https://github.com/scrooloose/syntastic.git vim/bundle/less = [git]https://github.com/groenewege/vim-less.git vim/bundle/twig = [git]https://github.com/beyondwords/vim-twig.git diff -r 67e6ade3a451 -r 4d73159f56ca .hgsubstate --- a/.hgsubstate Sun Mar 13 15:48:31 2016 -0700 +++ b/.hgsubstate Mon Mar 14 21:01:35 2016 -0700 @@ -18,7 +18,7 @@ 649120e90e92bc2ae5361693fa1e4dd2d02c1822 vim/bundle/easymotion 19d1c944dbf59f252135688018610a12ce5718b4 vim/bundle/fugitive 6577ac10e3249d48576a44732dd765650273eef1 vim/bundle/gundo -794ee111bce6f72d8c3c2dde7e5a0438e21f0d4c vim/bundle/gutentags +05fc1e2172ccab273a15305f8168526a0a7d065e vim/bundle/gutentags 1f2e47c78c2faf90ff419c2f4e1241094844678c vim/bundle/haml 09b5653761879394b24f6c902c7dbbbd11b19512 vim/bundle/interestingwords 8a8f0ed97c1751d304cf5b7241f2fe27b0e61f81 vim/bundle/jinja @@ -27,11 +27,13 @@ 0c60eb4de8827d762137e7d956219ee7f5b67494 vim/bundle/linediff 4260faa48f5b89261f1168d4a1ad195106f5959c vim/bundle/markdown 4ebbb533c3faf2c480211db2b547972bb3b60f2b vim/bundle/nerdtree +8c91196cfd9c8fe619f35fac6f2ac81be10677f8 vim/bundle/pathogen af8514b79c046a6bb447021b81351edb050ac69f vim/bundle/piecrust 114f8e5c204f1cac9b2443065910fa182de39fb8 vim/bundle/powerline 4bda3035ce9523a6d31792bc6c22ce2b9e0ae9a3 vim/bundle/pythonmode 0ef3f6a5778467fbca12b7874a4509593b209228 vim/bundle/ragtag 7a6675f092842c8f81e71d5345bd7cdbf3759415 vim/bundle/repeat +a17462708aa40a7fc0afd4effa559087d8a2c908 vim/bundle/sleuth 528a59f26d12278698bb946f8fb82a63711eec21 vim/bundle/solarized 66511772a430a5eaad7f7d03dbb02e8f33c4a641 vim/bundle/supertab 2d05440ad23f97a7874ebd9b5de3a0e65d25d85c vim/bundle/surround diff -r 67e6ade3a451 -r 4d73159f56ca vim/autoload/pathogen.vim --- a/vim/autoload/pathogen.vim Sun Mar 13 15:48:31 2016 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,233 +0,0 @@ -" pathogen.vim - path option manipulation -" Maintainer: Tim Pope -" Version: 2.0 - -" Install in ~/.vim/autoload (or ~\vimfiles\autoload). -" -" For management of individually installed plugins in ~/.vim/bundle (or -" ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc -" prior to `filetype plugin indent on` is the only other setup necessary. -" -" The API is documented inline below. For maximum ease of reading, -" :set foldmethod=marker - -if exists("g:loaded_pathogen") || &cp - finish -endif -let g:loaded_pathogen = 1 - -" Point of entry for basic default usage. Give a directory name to invoke -" pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path -" to invoke pathogen#runtime_prepend_subdirectories(). Afterwards, -" pathogen#cycle_filetype() is invoked. -function! pathogen#infect(...) abort " {{{1 - let source_path = a:0 ? a:1 : 'bundle' - if source_path =~# '[\\/]' - call pathogen#runtime_prepend_subdirectories(source_path) - else - call pathogen#runtime_append_all_bundles(source_path) - endif - call pathogen#cycle_filetype() -endfunction " }}}1 - -" Split a path into a list. -function! pathogen#split(path) abort " {{{1 - if type(a:path) == type([]) | return a:path | endif - let split = split(a:path,'\\\@,'edit',,0) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) -command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) - -" vim:set ft=vim ts=8 sw=2 sts=2: diff -r 67e6ade3a451 -r 4d73159f56ca vim/vimrc --- a/vim/vimrc Sun Mar 13 15:48:31 2016 -0700 +++ b/vim/vimrc Mon Mar 14 21:01:35 2016 -0700 @@ -42,14 +42,15 @@ call add(g:pathogen_disabled, 'ragtag') call add(g:pathogen_disabled, 'interestingwords') +" Load pathogen. " Potentially add the local bundle directory. +let s:pathogen_bundles = ['bundle/{}'] if isdirectory(s:vim_home.s:path_sep.'local') - execute 'set runtimepath+='.s:vim_home.s:path_sep.'local' + "execute 'set runtimepath+='.s:vim_home.s:path_sep.'local' + call add(s:pathogen_bundles, 'local/{}') endif - -" Load pathogen. -"call pathogen#infect() -call pathogen#runtime_append_all_bundles() +call call('pathogen#infect', s:pathogen_bundles) +"call pathogen#runtime_append_all_bundles() " Hide the toolbar in MacVim/gVIM, and set a nice window size. if has("gui_running") && !exists('g:resourcing_vimrc') @@ -381,6 +382,7 @@ augroup VimRCFileType_c au! autocmd FileType c,c++,cpp setlocal foldmethod=syntax + autocmd FileType c,c++,cpp setlocal colorcolumn=120 augroup END augroup VimRCFileType_css @@ -480,7 +482,7 @@ nnoremap s :call ToggleSpellCheck() " Simple way to close a buffer without closing the window. -nnoremap bd :bprevious:bdelete # +nnoremap d :bprevious:bdelete # " Use sane regexes. nnoremap / /\v