aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/my/plugin/autosave.vim
blob: 6339dcb388b8f2f179b8b4e1059520fa24878acd (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#disable() |
    \ else |
    \     call autosave#enable() |
    \ endif



let g:loaded_autosave = 1