cloneSimilar : Create a duplicate clone of the current buffer with a similar name.
script karma |
Rating 0/0,
Downloaded by 943 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Ingo Karkat |
|
script type |
utility |
|
description |
DESCRIPTION
This plugin combines the buffer cloning functionality of clone.vim
(vimscript #4896) with the selection of similar files provided by
EditSimilar.vim (vimscript #2544) to provide :CloneSubstitute,
:ClonePlus etc. command variants of the original :CloneAs command.
USAGE
:[range]ClonePlus[!], :CloneMinus[!], :CloneSubstitute[!], :CloneRoot[!]
:[range]SClonePlus[!], :SCloneMinus,[!] :SCloneSubstitute[!], :SCloneRoot[!]
Duplicate and edit the current buffer to a file with a
similar name, using the substitutions and iterations
provided by the EditSimilar.vim plugin.
Writes over existing buffer with [!]. |
|
install details |
INSTALLATION
The code is hosted in a Git repo at
https://github.com/inkarkat/vim-cloneSimilar
You can use your favorite plugin manager, or "git clone" into a directory used
for Vim packages. Releases are on the "stable" branch, the latest unstable
development snapshot on "master".
This script is also packaged as a vimball. If you have the "gunzip"
decompressor in your PATH, simply edit the *.vmb.gz package in Vim; otherwise,
decompress the archive first, e.g. using WinZip. Inside Vim, install by
sourcing the vimball or via the :UseVimball command.
vim cloneSimilar*.vmb.gz
:so %
To uninstall, use the :RmVimball command.
DEPENDENCIES
- Requires Vim 7.0 or higher.
- Requires the clone.vim plugin (vimscript #4896), version 1.00 or
higher.
- Requires the EditSimilar.vim plugin (vimscript #2544), version 2.40 or
higher. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|