aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/vim/my/plugin/autosave.vim
blob: 2548609a1c6ac95da58432aa3782b6ea069a6d31 (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
scriptencoding utf-8

if exists('g:loaded_autosave')
    finish
endif



command! -bar
    \ AutosaveEnable
    \ call autosave#enable()


command! -bar
    \ AutosaveDisable
    \ call autosave#disable()


command! -bar
    \ AutosaveToggle
    \ if exists('b:autosave_timer') |
    \     call autosave#enable() |
    \ else |
    \     call autosave#disable() |
    \ endif



let g:loaded_autosave = 1