Overleaf Editor Custom VIM Keybindings (legacy, for Ace editor only)

Configure a list of shortcuts for Vim-mode + :commands for toggling panes on Overleaf

Old: v0.2.3 - 2020-05-06 - Use `:back` to go to the list of projects.
New: v0.2.3 - 2020-07-13 - Attempt to softwrap at 80 char, not working for now.

  • --- /tmp/diffy20250910-3159201-f5t81 2025-09-10 06:47:29.744950768 +0000
  • +++ /tmp/diffy20250910-3159201-mwa5p9 2025-09-10 06:47:29.744950768 +0000
  • @@ -20,6 +20,10 @@
  • var editor = window._debug_editors[window._debug_editors.length -1]
  • // Option for a vertical split. Source: https://stackoverflow.com/a/24417327/3925312
  • editor.setOption("showPrintMargin", true)
  • + // session wrap at 80 ? Not working yet. Source: https://groups.google.com/g/ace-discuss/c/gjLwB6Bmj0c
  • + editor.session.setUseWrapMode(true);
  • + editor.session.setWrapLimitRange(80, 80);
  • + editor.setOption("indentedSoftWrap", true)
  • // vim keyboard plugin
  • var vimKeyboard = window.ace.require("ace/keyboard/vim")
  • ////////////////////////////////////////////////////////////