2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2009-05-24 15:47:17 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2009-05-24 15:47:17 +02:00
|
|
|
{
|
2013-05-22 11:47:28 +02:00
|
|
|
add_binary "vim"
|
2012-09-11 12:57:34 +02:00
|
|
|
add_file "/etc/vimrc"
|
2012-09-10 22:09:52 +02:00
|
|
|
# fix vi symlink
|
2012-09-13 21:37:33 +02:00
|
|
|
add_symlink "/usr/bin/vi" "/usr/bin/vim"
|
2013-06-04 15:59:55 +02:00
|
|
|
add_file "/usr/share/vim/vimfiles/archlinux.vim"
|
2021-09-11 17:40:09 +02:00
|
|
|
add_file "/usr/share/vim/vim82/defaults.vim"
|
2021-09-25 08:21:12 +02:00
|
|
|
SYNTAX="syntax conf sh grup manual synload colortest syncolor hitest whitespace modconf resolv fstab bash zsh exports passwd sysctl systemd vim"
|
2021-09-24 18:19:04 +02:00
|
|
|
for i in ${SYNTAX}; do
|
|
|
|
add_file "/usr/share/vim/vim82/syntax/$i.vim"
|
|
|
|
done
|
2020-07-17 11:05:41 +02:00
|
|
|
add_file "/usr/share/vim/vim82/filetype.vim"
|
2021-09-12 19:15:51 +02:00
|
|
|
add_file "/usr/share/vim/vim82/rgb.txt"
|
2012-09-11 12:57:34 +02:00
|
|
|
add_file "/usr/share/licenses/vim/license.txt"
|
2009-05-24 15:47:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes small version of vim on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|