1
0
Fork 0
mirror of synced 2024-11-05 00:48:57 -05:00
ultimate-vim/install_awesome_vimrc.sh
Martin Hans 5444b76f9d
Add sourcing from my_configs/
To enable structurizing of own stuff or using *dotfile*
managers, this PR add the sourcing of `*.vim` files from the
`my_config/` directory. If the
`glob("~/.vim_runtime/my_configs/*.vim",1,1)` list is empty, the
`~/.vim_runtime/my_configs.vim` is sourced as previously.
2024-05-13 11:24:03 +02:00

32 lines
740 B
Bash
Executable file

#!/bin/sh
set -e
cd ~/.vim_runtime
echo '" DO NOT EDIT THIS FILE
" Add your own customizations in $1/my_configs.vim
" See ~/.vim_runtime/README.md "How to include your own stuff" for further options.
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
let files=glob("~/.vim_runtime/my_configs/*.vim", 1, 1)
if empty(files)
try
source ~/.vim_runtime/my_configs.vim
catch
endtry
else
for file in files
try
execute 'source' fnameescape(file)
catch
endtry
endfor
endif' > ~/.vimrc
echo "Installed the Ultimate Vim configuration successfully! Enjoy :-)"