Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flatcap/vim-save-next-file
⚙ Vim Plugin - A new file with a higher numeric suffix
https://github.com/flatcap/vim-save-next-file
automatic file naming plugin save script vim
Last synced: about 6 hours ago
JSON representation
⚙ Vim Plugin - A new file with a higher numeric suffix
- Host: GitHub
- URL: https://github.com/flatcap/vim-save-next-file
- Owner: flatcap
- License: other
- Created: 2015-03-24T01:45:04.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T19:25:19.000Z (over 2 years ago)
- Last Synced: 2024-05-02T02:16:52.906Z (7 months ago)
- Topics: automatic, file, naming, plugin, save, script, vim
- Language: Vim script
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# save-next-file.vim
SaveNextFile creates a new file with a new, higher, numeric suffix.
Imagine you're working on a file and you want to quickly save a new copy.
This plugin will take the filename and generate a new name.The old file will remain unchanged from the last, manual, save.
The new file will contain the, previously, unsaved changes.Note: Existing files will be skipped.
## Examples
| Before | After |
| ----------|----------- |
| file | file2 |
| file99 | file100 |
| file.cpp | file2.cpp |
| file3.cpp | file4.cpp |## Mapping
nmap SaveNextFile
## License
Copyright © Richard Russon (flatcap).
Distributed under the GPLv3## See also
- [flatcap.org](https://flatcap.org)
- [GitHub](https://github.com/flatcap/vim-save-next-file)