blob: 93765785500f13eccd9f11bd5a90102880ae0e78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
post_install() {
echo -n "Updating vim help tags..."
/usr/bin/vim --noplugins -u NONE -U NONE \
--cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
echo "done."
printf "$eunuch\n"
}
post_upgrade() {
post_install $1
}
post_remove() {
echo -n "Updating vim help tags..."
/usr/bin/vim --noplugins -u NONE -U NONE \
--cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
echo "done."
}
read -d '' eunuch <<"EOF"
# vim-eunuch
Vim sugar for the UNIX shell commands that need it the most. Commands include:
:Unlink: Delete a buffer and the file on disk simultaneously.
:Remove: Like :Unlink, but doesn't require a neckbeard.
:Move: Rename a buffer and the file on disk simultaneously.
:Chmod: Change the permissions of the current file.
:Find: Run find and load the results into the quickfix list.
:Locate: Run locate and load the results into the quickfix list.
:SudoWrite: Write a privileged file with sudo.
:W: Write every open window. Handy for kicking off tools like guard.
EOF
op=$1
shift
$op $*
|