How can I define custom Vim macros in a vimrc file on Overleaf? Introduction Overleaf provides Vim and Emacs keybindings that can be switched on in the project menu. However, as these keybindings are emulated by the editor (i.e., there is no real Vim or Emacs running), it’s not possible to use Vim’s standard methods of adding new ones within Overleaf using Tampermonkey. Here we show ways that shou