sponsor Vim development Vim logo Vim Book Ad

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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cloneSimilar-1.01.vmb.gz 1.01 2024-11-14 7.0 Ingo Karkat - ENH: :CloneAs (version 1.10 or later) now supports [!].
- ENH: Support partial cloning of :[range].
cloneSimilar-1.00.vmb.gz 1.00 2014-03-18 7.0 Ingo Karkat Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github