diff --git a/.gitmodules b/.gitmodules index 984ee64..ca311ff 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,26 +1,26 @@ [submodule "vim/.vim/bundle/quick-scope"] - path = vim/.vim/bundle/quick-scope + path = vim/.vim/pack/plugins/start/quick-scope url = https://github.com/unblevable/quick-scope [submodule "vim/.vim/bundle/vim-fugitive"] - path = vim/.vim/bundle/vim-fugitive + path = vim/.vim/pack/plugins/start/vim-fugitive url = https://github.com/tpope/vim-fugitive [submodule "vim/.vim/bundle/vim-commentary"] - path = vim/.vim/bundle/vim-commentary + path = vim/.vim/pack/plugins/start/vim-commentary url = https://github.com/tpope/vim-commentary [submodule "vim/.vim/bundle/vim-surround"] - path = vim/.vim/bundle/vim-surround + path = vim/.vim/pack/plugins/start/vim-surround url = https://github.com/tpope/vim-surround [submodule "vim/.vim/bundle/vim-gitgutter"] - path = vim/.vim/bundle/vim-gitgutter + path = vim/.vim/pack/plugins/start/vim-gitgutter url = https://github.com/airblade/vim-gitgutter [submodule "vim/.vim/bundle/vim-lastplace"] - path = vim/.vim/bundle/vim-lastplace + path = vim/.vim/pack/plugins/start/vim-lastplace url = https://github.com/farmergreg/vim-lastplace [submodule "vim/.vim/bundle/vim-fish"] - path = vim/.vim/bundle/vim-fish + path = vim/.vim/pack/plugins/start/vim-fish url = https://github.com/dag/vim-fish [submodule "vim/.vim/bundle/vim-airline"] - path = vim/.vim/bundle/vim-airline + path = vim/.vim/pack/plugins/start/vim-airline url = https://github.com/vim-airline/vim-airline [submodule "pb"] path = pb diff --git a/Makefile b/Makefile index e6439fd..4edc42c 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ vim: @printf "$(YELLOW)--- vim ------------------------------------------------\n$(RESET)" mkdir -p ~/.vim/{undodir,swap,backup} chmod 700 ~/.vim/{undodir,swap,backup} - git submodule update --remote --init -- vim/.vim/bundle + git submodule update --remote --init -- vim/.vim/pack/plugins stow -t "$$HOME" vim weechat: diff --git a/vim/.vim/autoload/pathogen.vim b/vim/.vim/autoload/pathogen.vim deleted file mode 100644 index 3582fbf..0000000 --- a/vim/.vim/autoload/pathogen.vim +++ /dev/null @@ -1,264 +0,0 @@ -" pathogen.vim - path option manipulation -" Maintainer: Tim Pope -" Version: 2.4 - -" Install in ~/.vim/autoload (or ~\vimfiles\autoload). -" -" For management of individually installed plugins in ~/.vim/bundle (or -" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your -" .vimrc is the only other setup necessary. -" -" The API is documented inline below. - -if exists("g:loaded_pathogen") || &cp - finish -endif -let g:loaded_pathogen = 1 - -" Point of entry for basic default usage. Give a relative path to invoke -" pathogen#interpose() or an absolute path to invoke pathogen#surround(). -" Curly braces are expanded with pathogen#expand(): "bundle/{}" finds all -" subdirectories inside "bundle" inside all directories in the runtime path. -" If no arguments are given, defaults "bundle/{}", and also "pack/{}/start/{}" -" on versions of Vim without native package support. -function! pathogen#infect(...) abort - if a:0 - let paths = filter(reverse(copy(a:000)), 'type(v:val) == type("")') - else - let paths = ['bundle/{}', 'pack/{}/start/{}'] - endif - if has('packages') - call filter(paths, 'v:val !~# "^pack/[^/]*/start/[^/]*$"') - endif - let static = '^\%([$~\\/]\|\w:[\\/]\)[^{}*]*$' - for path in filter(copy(paths), 'v:val =~# static') - call pathogen#surround(path) - endfor - for path in filter(copy(paths), 'v:val !~# static') - if path =~# '^\%([$~\\/]\|\w:[\\/]\)' - call pathogen#surround(path) - else - call pathogen#interpose(path) - endif - endfor - call pathogen#cycle_filetype() - if pathogen#is_disabled($MYVIMRC) - return 'finish' - endif - return '' -endfunction - -" Split a path into a list. -function! pathogen#split(path) abort - if type(a:path) == type([]) | return a:path | endif - if empty(a:path) | return [] | endif - let split = split(a:path,'\\\@]','\\&','') - endif -endfunction - -" Like findfile(), but hardcoded to use the runtimepath. -function! pathogen#runtime_findfile(file,count) abort - let rtp = pathogen#join(1,pathogen#split(&rtp)) - let file = findfile(a:file,rtp,a:count) - if file ==# '' - return '' - else - return fnamemodify(file,':p') - endif -endfunction - -" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=': diff --git a/vim/.vim/bundle/quick-scope b/vim/.vim/pack/plugins/start/quick-scope similarity index 100% rename from vim/.vim/bundle/quick-scope rename to vim/.vim/pack/plugins/start/quick-scope diff --git a/vim/.vim/bundle/vim-airline b/vim/.vim/pack/plugins/start/vim-airline similarity index 100% rename from vim/.vim/bundle/vim-airline rename to vim/.vim/pack/plugins/start/vim-airline diff --git a/vim/.vim/bundle/vim-commentary b/vim/.vim/pack/plugins/start/vim-commentary similarity index 100% rename from vim/.vim/bundle/vim-commentary rename to vim/.vim/pack/plugins/start/vim-commentary diff --git a/vim/.vim/bundle/vim-fish b/vim/.vim/pack/plugins/start/vim-fish similarity index 100% rename from vim/.vim/bundle/vim-fish rename to vim/.vim/pack/plugins/start/vim-fish diff --git a/vim/.vim/bundle/vim-fugitive b/vim/.vim/pack/plugins/start/vim-fugitive similarity index 100% rename from vim/.vim/bundle/vim-fugitive rename to vim/.vim/pack/plugins/start/vim-fugitive diff --git a/vim/.vim/bundle/vim-gitgutter b/vim/.vim/pack/plugins/start/vim-gitgutter similarity index 100% rename from vim/.vim/bundle/vim-gitgutter rename to vim/.vim/pack/plugins/start/vim-gitgutter diff --git a/vim/.vim/bundle/vim-lastplace b/vim/.vim/pack/plugins/start/vim-lastplace similarity index 100% rename from vim/.vim/bundle/vim-lastplace rename to vim/.vim/pack/plugins/start/vim-lastplace diff --git a/vim/.vim/bundle/vim-surround b/vim/.vim/pack/plugins/start/vim-surround similarity index 100% rename from vim/.vim/bundle/vim-surround rename to vim/.vim/pack/plugins/start/vim-surround diff --git a/vim/.vimrc b/vim/.vimrc index 87daf87..b8419c0 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -82,8 +82,6 @@ cmap w!! w !sudo tee % >/dev/null set rtp+=~/.fzf -execute pathogen#infect() - let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] " vim:set ft=vim et sw=2: