Tools (工具)

Thursday, 15 December 2016

vim regular expression substituation

e.g. replace .LBB5_7, .LBB2_3 with .LBB
:%s#.LBB\(.\+\)#.LBB#gc
Posted by 卖码翁 at 06:18
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: vim

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

卖码翁
爱生活的程序员
View my complete profile

Blog Archive

  • ►  2017 (23)
    • ►  July (1)
    • ►  June (1)
    • ►  May (2)
    • ►  March (3)
    • ►  February (7)
    • ►  January (9)
  • ▼  2016 (40)
    • ▼  December (10)
      • Emacs: how to change from insert mode to overwrite...
      • Absolute Beginner's Guide to Emacs 4
      • More efficient emacs combination keys.
      • Absolute Beginner's Guide to Emacs 3
      • Absolute Beginner's Guide to Emacs 2
      • Absolute Beginner's Guide to Emacs 1
      • Emacs 9: Official tutorial 8
      • Emacs 8 Offical Tutorial Part 7
      • vim regular expression substituation
      • How to show git statistics for a local change?
    • ►  November (17)
    • ►  October (11)
    • ►  September (2)
Simple theme. Powered by Blogger.