Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neovim
IncrementalFileBackup.nvim
Commits
6c9a3dd7
Verified
Commit
6c9a3dd7
authored
Oct 25, 2018
by
Marco Kellershoff
🤸
Browse files
Initial import
parents
Changes
6
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
6c9a3dd7
tags
LICENSE
0 → 100644
View file @
6c9a3dd7
MIT License
Copyright (c) 2018 Super Evil Mega Co
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
README.md
0 → 100644
View file @
6c9a3dd7
IncrementalFileBackup.nvim
==========================

A Vim/Neovim plugin to backup files incrementally before every save.
## Usage
`:IncrementalFileBackupEnable`
to enable file backup.
`:IncrementalFileBackupDisable`
to disable file backup.
## Credits
### Icon
Icon made by
[
freepik
](
https://www.freepik.com/
)
from
[
www.flaticon.com
](
https://www.flaticon.com/
)
doc/IncrementalFileBackup.txt
0 → 100644
View file @
6c9a3dd7
*IncrementalFileBackup.txt* A Vim/Neovim plugin to incrementally backup files.
Author: Marco Kellershoff <https://gorilla.moe/>
License: MIT License (see |license|)
INTRODUCTION *IncrementalFileBackup*
This plugin's main purpose is to backup files incrementally before a buffer
gets saved to disk.
COMMANDS *IncrementalFileBackup-commands*
:IncrementalFileBackupEnable
:IncrementalFileBackup#Disable
MAPPINGS *IncrementalFileBackup-mappings*
There are no mappings registered by the plugin.
You need to map it according to your preference.
ABOUT *IncrementalFileBackup-about*
Grab the latest version or report a bug:
http://git.superevilmegaco.com/superevilmegaco/Neovim/IncrementalFileBackup.nvim
vim:tw=78:et:ft=help:norl:
icon.png
0 → 100644
View file @
6c9a3dd7
13.5 KB
plugin/IncrementalFileBackup.vim
0 → 100644
View file @
6c9a3dd7
if
exists
(
"g:loaded_IncrementalFileBackup"
)
finish
endif
let
g:loaded_IncrementalFileBackup
=
1
let
s:PluginName
=
"IncrementalFileBackup.nvim"
let
s:isVerbose
=
0
function
!
IncrementalFileBackup#Enable
()
let
&
bex
=
'-'
.
strftime
(
"%Y%m%d%H%M%S"
)
.
'~'
:
au
BufWritePre
*
let
&
bex
=
'-'
.
strftime
(
"%Y%b%d%X"
)
.
'~'
endfunction
function
!
IncrementalFileBackup#Disable
()
endfunction
command
!
IncrementalFileBackupEnable
call
IncrementalFileBackup#Enable
()
command
!
IncrementalFileBackupDisable
call
IncrementalFileBackup#Disable
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment