How do I repeatedly search & replace a long string of text in vim? -


i'm aware of vim replace command, of form, eg:

:%s/old/new/gc 

but if either of these strings long? how can use visual selection mode, clipboard or vim registers instead of having type old/new text in?

according manual, can use ctrl+r insert contents of register current position in command line. manual claims ctrl+y inserts text highlighted mouse command line. remember in x11 , other systems, can paste text program system clipboard using middle mouse button or menu command in terminal emulator.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -