Guest User

Untitled

a guest
Nov 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. The quick
  2. #a comment
  3. brown
  4. fox jumps
  5. #another comment
  6. over
  7. the
  8. lazy
  9. #yet another comment
  10. dog
  11.  
  12. #auto comment
  13. The quick
  14. #a comment
  15. brown
  16. #auto comment
  17. fox jumps
  18. #another comment
  19. over
  20. #auto comment
  21. the
  22. #auto comment
  23. lazy
  24. #yet another comment
  25. dog
  26.  
  27. :%s/^([^#].*)n([^#].*)$/1r#auto commentr2/g
  28.  
  29. The quick
  30. #a comment
  31. brown
  32. #auto comment
  33. fox jumps
  34. #another comment
  35. over
  36. #auto comment
  37. the
  38. lazy
  39. #yet another comment
  40. dog
  41.  
  42. %s/(^#.*n)@<!_^[^#]/#auto commentr&
  43.  
  44. :h /@<!
  45. :h /_^
  46. :h s/\&
  47.  
  48. ([^#n]+n#[w ]+?n[^n]+(?:n|$))|^([^n]+n)
Add Comment
Please, Sign In to add comment