X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vim%2Fplugin%2Frecover.vim;fp=.vim%2Fplugin%2Frecover.vim;h=ca5db5e5a224919c6901d77b110b4a19f8a1622f;hp=0000000000000000000000000000000000000000;hb=2cbf91ba4548c255cca0e58d168d59056dfa1a21;hpb=0ce5478e8c7f9f30c8b9f5d26577a89c7ce67034 diff --git a/.vim/plugin/recover.vim b/.vim/plugin/recover.vim new file mode 100644 index 0000000..ca5db5e --- /dev/null +++ b/.vim/plugin/recover.vim @@ -0,0 +1,37 @@ +" Vim plugin for diffing when swap file was found +" Last Change: Wed, 14 Aug 2013 22:39:13 +0200 +" Version: 0.18 +" Author: Christian Brabandt +" Script: http://www.vim.org/scripts/script.php?script_id=3068 +" License: VIM License +" GetLatestVimScripts: 3068 17 :AutoInstall: recover.vim +" Documentation: see :h recoverPlugin.txt + +" --------------------------------------------------------------------- +" Load Once: {{{1 +if version < 702 + finish +endif +if exists("g:loaded_recover") || &cp + finish +endif +let g:loaded_recover = 1"}}} +let s:keepcpo = &cpo +set cpo&vim + +" --------------------------------------------------------------------- +" Public Interface {{{1 +" Define User-Commands and Autocommand "{{{ +call recover#Recover(1) + +com! RecoverPluginEnable :call recover#Recover(1) +com! RecoverPluginDisable :call recover#Recover(0) +com! RecoverPluginHelp :call recover#Help() + +" ===================================================================== +" Restoration And Modelines: {{{1 +let &cpo= s:keepcpo +unlet s:keepcpo + +" Modeline {{{1 +" vim: fdm=marker sw=2 sts=2 ts=8 fdl=0