sponsor Vim development Vim logo Vim Book Ad

Rename : Replaces instances of current word or selection

 script karma  Rating 0/2, Downloaded by 570  Comments, bugs, improvements  Vim wiki

created by
Lyndon Maydwell
 
script type
utility
 
description
Two modes -

Normal: Replace all instances of the word under the cursor in the current file.
Visual: Replace all instances of the current selection in the current file.

Usage -

<Leader><Leader>r

I may make the usage more general in the future, but it should be very easy to change this mapping in the script if you need to for now.

History -

I couldn't find a 'dumb' find and replace plugin. All the plugins I came across were function-aware, etc. This is great if you're using C, however, sometimes you just want to change some text.
 
install details
Place in your plugin directory.
 

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
rename.vim 1.0 2011-03-28 7.0 Lyndon Maydwell Initial upload
ip used for rating: 18.188.108.54

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