Vim Notes

Find and Replace


Find and Replace in a part of a file

Mark a beginning line in the file with m followed by any letter. Similarly for the ending line.


  • q followed by any letter to begin recording a macro.
  • q to end.
  • @L to execute the macro L once.
  • N@L executes macro L, N times.

-- RyanReece - 17-Mar-2010

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-03-17 - RyanReece
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback