Skip to content

⚙ Vim Plugin - A new file with a higher numeric suffix

License

Notifications You must be signed in to change notification settings

flatcap/vim-save-next-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 <silent> <F9> <Plug>SaveNextFile

License

Copyright © Richard Russon (flatcap). Distributed under the GPLv3 http://fsf.org/

See also

About

⚙ Vim Plugin - A new file with a higher numeric suffix

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published