User Tools

Site Tools


wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wsl [2024/11/25 11:36] dblumewsl [2025/04/06 18:53] (current) – Map C-i to vim's leader-i dblume
Line 9: Line 9:
 [[https://unix.stackexchange.com/a/717441/282848|Use Windows Terminal to distinguish Ctrl-i from Tab]]. [[https://unix.stackexchange.com/a/717441/282848|Use Windows Terminal to distinguish Ctrl-i from Tab]].
  
-To remap Ctrl-i:+To remap Ctrl-i to a sequence that maps as Ctrl-i //outside of tmux//:
  
   - In Windows Terminal, go to the dropdown menu and open Settings   - In Windows Terminal, go to the dropdown menu and open Settings
Line 16: Line 16:
 <code javascript> <code javascript>
 { {
-    "command": {+    "command":  
 +    {
         "action": "sendInput",         "action": "sendInput",
-        "input": "\u001b[105;5u"+        "input": "\\i"
     },     },
     "keys": "ctrl+i"     "keys": "ctrl+i"
 } }
 +</code>
 +
 +Note that you could've set "input" to ''"input": "\u001b[105;5u"'', but that doesn't work in tmux on the server. If you want things to work in vim inside or outside of tmux, map Ctrl-i to <leader>-i.
 +
 +When you save it, note that the ''"keys": "ctrl+i"'' line changes to a new ''User.sendInput'' ID. Verify it's correct in the "keybindings" section. You should end up with something like:
 +
 +<code javascript>
 +{
 +    "command": 
 +    {
 +        "action": "sendInput",
 +        "input": "\\i"
 +    },
 +    "id": "User.sendInput.BDDBFCE3"
 +}
 +],
 +    "keybindings": 
 +    [
 +        {
 +            "id": "User.sendInput.BDDBFCE3",
 +            "keys": "ctrl+i"
 +        },
 </code> </code>
  
wsl.txt · Last modified: 2025/04/06 18:53 by dblume