Overleaf Editor Custom VIM Keybindings

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

As of 27.04.2020. See ბოლო ვერსია.

ავტორი
llinfeng
რეიტინგი
0 0 0
ვერსია
0.2
შექმნილია
16.04.2020
განახლებულია
27.04.2020
Size
5,16 KB
ლიცენზია
პ/გ
გამოყენებს მათ

Full Credits to Harutyun Amirjanyan for the jump-to-PDF script, as found on the Ace forum, in this post.

List of mappings defined in this gist.

  • imap jj <esc> and imap jk <esc>
  • nmap j gj and nmap k gk
  • \lv and ;lv are triggering the following button image
  • ,v to toggle the file-tree on the left.
  • ,o to enter editor-only mode: it hides the file panel and the PDF preview pane.
  • :pdf in Commandline, to toggle the PDF pane on the right. Alias include: :PDF, :ShowPDF, :ClosePDF, :OpenPDF.
  • :cc in Commandline, to toggle the Comment panel. Alias include: :CC, :CloseComment.

It should be plug-and-play, and include settings of the following sort.

  1. nmap and vmap;
  2. unmap certain special keys. (For now, ; and , are specially reserved for unknown purposes.)
  3. command! Short LongCommand, where :Short can be callable. And, in TamperMonkey, the LongCommand needs to be specified through JavaScript.