" GPL-3.0 License " prevent the plugin from loading twice if exists('g:loaded_autosave') | finish | endif let s:save_cpo = &cpo " save user coptions set cpo&vim " reset them to defaults " main {{{ lua require('autosave.main').main('startup') " }}} " Interface {{{ command! ASToggle lua require'autosave.main'.main('toggle') " }}} let &cpo = s:save_cpo " restore after unlet s:save_cpo " set to true the var that controls the plugin's loading let g:loaded_autosave = 1