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
Next revision
Previous revision
wsl [2024/04/25 22:38] 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>
  
Line 73: Line 96:
      # Happens when running headless.  Convert to ImportError to cooperate with      # Happens when running headless.  Convert to ImportError to cooperate with
 </file> </file>
 +
 +===== VPN =====
 +
 +Install [[https://github.com/sakai135/wsl-vpnkit|wsp-vpnkit]], and run as a systemd service.
wsl.1714109881.txt.gz · Last modified: 2024/04/25 22:38 by dblume