lehrkraefte:blc:vim:tips-und-tricks

This is an old revision of the document!


Vim Tricks

Example in .vimrc

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>.

Record your macro q and then show it with :reg q. Replace all special chars.

  • lehrkraefte/blc/vim/tips-und-tricks.1627815293.txt.gz
  • Last modified: 2021/08/01 12:54
  • by Ivo Blöchliger