lehrkraefte:blc:vim:tips-und-tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:blc:vim:tips-und-tricks [2021/08/01 12:54]
Ivo Blöchliger [Saving Macros with Escape and Control-Characters]
lehrkraefte:blc:vim:tips-und-tricks [2021/08/01 15:25] (current)
Ivo Blöchliger [Saving Macros with Escape and Control-Characters]
Line 5: Line 5:
   let @e='02f{lyt}:!makeex ^R"^M:tabe ex/^R"/^R"-sol.tex^M:vsplit ex/^R"/^R".tex^M'   let @e='02f{lyt}:!makeex ^R"^M:tabe ex/^R"/^R"-sol.tex^M:vsplit ex/^R"/^R".tex^M'
 The problem is, ^R (<Ctrl-r>) and ^M (<CR>) are single special characters. You have to enter them bei preceeding them with <Ctrl-v>. The problem is, ^R (<Ctrl-r>) and ^M (<CR>) are single special characters. You have to enter them bei preceeding them with <Ctrl-v>.
 +
 +Or simply paste them in Insert-Mode with C-r C-r q (provided the macro is stored in register q)
  
 Record your macro q and then show it with :reg q. Replace all [[http://vimdoc.sourceforge.net/htmldoc/intro.html#key-notation|special chars]]. Record your macro q and then show it with :reg q. Replace all [[http://vimdoc.sourceforge.net/htmldoc/intro.html#key-notation|special chars]].
  
  
  • lehrkraefte/blc/vim/tips-und-tricks.txt
  • Last modified: 2021/08/01 15:25
  • by Ivo Blöchliger