Created
September 3, 2025 08:28
-
-
Save louisroyer/6fa5cdda217d34b3891d4d0cb5eca031 to your computer and use it in GitHub Desktop.
IRIT Sharelatex Custom vim keybindings for bépo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name IRIT Sharelatex Custom vim keybindings for bépo | |
| // @namespace Violentmonkey Scripts | |
| // @match https://sharelatex.irit.fr:8443/project/* | |
| // @match https://sharelatex.irit.fr/project/* | |
| // @match https://www.overleaf.com/project/* | |
| // @grant none | |
| // @version 0.1 | |
| // @author Louis Royer | |
| // @downloadURL https://gist.githubusercontent.com/louisroyer/6fa5cdda217d34b3891d4d0cb5eca031/raw/overleaf_vim_keymap_bépo.user.js | |
| // @updateURL https://gist.githubusercontent.com/louisroyer/6fa5cdda217d34b3891d4d0cb5eca031/raw/overleaf_vim_keymap_bépo.user.js | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| window.addEventListener("UNSTABLE_editor:extensions", (event) => { | |
| const { CodeMirror, CodeMirrorVim, extensions } = event.detail; | |
| CodeMirrorVim.Vim.noremap("é", "w") | |
| CodeMirrorVim.Vim.noremap("É", "W") | |
| CodeMirrorVim.Vim.noremap("c", "h") | |
| CodeMirrorVim.Vim.noremap("r", "l") | |
| CodeMirrorVim.Vim.noremap("t", "j") | |
| CodeMirrorVim.Vim.noremap("s", "k") | |
| CodeMirrorVim.Vim.noremap("<BS>", "<PageUp>") | |
| CodeMirrorVim.Vim.noremap("<Space>", "<PageDown>") | |
| CodeMirrorVim.Vim.noremap("<CR>", "zz") | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment