Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# Exemple events that allow the reporter to attach vim configuration files
2
# whenever vim crash is reported.
3
 
4
EVENT=collect_vimrc_user component=vim
5
        # there has to be a comment here, otherwise
6
        # the next line is interpreted as a condition
7
        vimrc=~/.vimrc
8
        gvimrc=~/.gvimrc
9
        saved=none
10
        if [ -r $vimrc -a -f $vimrc ]; then
11
                cp $vimrc user_vimrc || exit $?
12
                saved="$saved, user_vimrc"
13
        else
14
                echo "File $vimrc not found"
15
        fi
16
        if [ -r $gvimrc -a -f $gvimrc ]; then
17
                cp $gvimrc user_gvimrc || exit $?
18
                saved="$saved, user_gvimrc"
19
        else
20
                echo "File $gvimrc not found"
21
        fi
22
        echo "Elements saved: ${saved#none, }"
23
 
24
EVENT=collect_vimrc_system component=vim
25
        # there has to be a comment here, otherwise
26
        # the next line is interpreted as a condition
27
        vimrc=/etc/vimrc
28
        gvimrc=/etc/gvimrc
29
        saved=none
30
        if [ -r $vimrc -a -f $vimrc ]; then
31
                cp $vimrc system_vimrc || exit $?
32
                saved="$saved, system_vimrc"
33
        else
34
                echo "File $vimrc not found"
35
        fi
36
        if [ -r $gvimrc -a -f $gvimrc ]; then
37
                cp $gvimrc system_gvimrc || exit $?
38
                saved="$saved, system_gvimrc"
39
        else
40
                echo "File $gvimrc not found"
41
        fi
42
        echo "Elements saved: ${saved#none, }"