How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminalSlight delay...

Can I use a neutral wire from another outlet to repair a broken neutral?

Why does Kotter return in Welcome Back Kotter

Is it possible to create light that imparts a greater proportion of its energy as momentum rather than heat?

Did converts (ger tzedek) in ancient Israel own land?

Why is Collection not simply treated as Collection<?>

How much of data wrangling is a data scientist's job?

Doing something right before you need it - expression for this?

Assassin's bullet with mercury

Why can't we play rap on piano?

I'm flying to France today and my passport expires in less than 2 months

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

What to put in ESTA if staying in US for a few days before going on to Canada

Theorems that impeded progress

AES: Why is it a good practice to use only the first 16bytes of a hash for encryption?

How to take photos in burst mode, without vibration?

What is going on with Captain Marvel's blood colour?

What's the point of deactivating Num Lock on login screens?

Twin primes whose sum is a cube

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Why is the 'in' operator throwing an error with a string literal instead of logging false?

How to say in German "enjoying home comforts"

Were any external disk drives stacked vertically?



How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminal


Slight delay when switching modes in vim using tmux or screenHow to get shift+arrows and ctrl+arrows working in Vim in tmux?Is there a single key in vim that both cancels the command I've just entered and takes me back to normal mode?Tmux: start copy mode and selection at the same timeUse forward slash as a key command in tmuxWeird behaviour/rendering on tmux in osxtmux in zsh with vi mode, toggle cursor shape between normal and insert modeZsh backward-delete-word does not recognize “/” characterZSH+gnome-terminal and VI input mode: Show ibeam or block cursorTmux in Urxvt. Esc key behaves like Meta






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I use alacritty and currently, I have these key binding



key_bindings:
# (macOS only)
- { key: N, mods: Command, action: SpawnNewInstance }
- { key: F, mods: Command, command:
{ program: "osascript",
args: ["/Users/sand/.dotfiles/alacritty-fullscreen.applescript"] } }
# ...
- { key: Delete, chars: "x1b[3~" }


I also using tmux with



# Needed for CTRL-Left/Right to work.
setw -g xterm-keys on

# Use vi key bindings in copy mode.
setw -g mode-keys vi

# Search mode vi
set-window-option -g mode-keys vi


I would like to have vi binding for zsh, but the thing I missed the most is option+delete will delete 1 word backwards in INSERT mode like I have in zsh emacs mode. I know that I can use <C-W> to delete word but I really get used to Option-Delete. It's also consistent with what I used in the browser textbox, google doc... to delete 1 word so I'd like to keep it.
How could I achieve this?



And I also notice that if I enter some text in zsh vi mode, hit ESC to go to NORMAL mode, then back to INSERT mode using i, I can not delete previously entered text using delete key anymore. I can only enter new characters, or back to NORMAL mode and cc, dd to delete text. Any idea?










share|improve this question





























    0















    I use alacritty and currently, I have these key binding



    key_bindings:
    # (macOS only)
    - { key: N, mods: Command, action: SpawnNewInstance }
    - { key: F, mods: Command, command:
    { program: "osascript",
    args: ["/Users/sand/.dotfiles/alacritty-fullscreen.applescript"] } }
    # ...
    - { key: Delete, chars: "x1b[3~" }


    I also using tmux with



    # Needed for CTRL-Left/Right to work.
    setw -g xterm-keys on

    # Use vi key bindings in copy mode.
    setw -g mode-keys vi

    # Search mode vi
    set-window-option -g mode-keys vi


    I would like to have vi binding for zsh, but the thing I missed the most is option+delete will delete 1 word backwards in INSERT mode like I have in zsh emacs mode. I know that I can use <C-W> to delete word but I really get used to Option-Delete. It's also consistent with what I used in the browser textbox, google doc... to delete 1 word so I'd like to keep it.
    How could I achieve this?



    And I also notice that if I enter some text in zsh vi mode, hit ESC to go to NORMAL mode, then back to INSERT mode using i, I can not delete previously entered text using delete key anymore. I can only enter new characters, or back to NORMAL mode and cc, dd to delete text. Any idea?










    share|improve this question

























      0












      0








      0








      I use alacritty and currently, I have these key binding



      key_bindings:
      # (macOS only)
      - { key: N, mods: Command, action: SpawnNewInstance }
      - { key: F, mods: Command, command:
      { program: "osascript",
      args: ["/Users/sand/.dotfiles/alacritty-fullscreen.applescript"] } }
      # ...
      - { key: Delete, chars: "x1b[3~" }


      I also using tmux with



      # Needed for CTRL-Left/Right to work.
      setw -g xterm-keys on

      # Use vi key bindings in copy mode.
      setw -g mode-keys vi

      # Search mode vi
      set-window-option -g mode-keys vi


      I would like to have vi binding for zsh, but the thing I missed the most is option+delete will delete 1 word backwards in INSERT mode like I have in zsh emacs mode. I know that I can use <C-W> to delete word but I really get used to Option-Delete. It's also consistent with what I used in the browser textbox, google doc... to delete 1 word so I'd like to keep it.
      How could I achieve this?



      And I also notice that if I enter some text in zsh vi mode, hit ESC to go to NORMAL mode, then back to INSERT mode using i, I can not delete previously entered text using delete key anymore. I can only enter new characters, or back to NORMAL mode and cc, dd to delete text. Any idea?










      share|improve this question














      I use alacritty and currently, I have these key binding



      key_bindings:
      # (macOS only)
      - { key: N, mods: Command, action: SpawnNewInstance }
      - { key: F, mods: Command, command:
      { program: "osascript",
      args: ["/Users/sand/.dotfiles/alacritty-fullscreen.applescript"] } }
      # ...
      - { key: Delete, chars: "x1b[3~" }


      I also using tmux with



      # Needed for CTRL-Left/Right to work.
      setw -g xterm-keys on

      # Use vi key bindings in copy mode.
      setw -g mode-keys vi

      # Search mode vi
      set-window-option -g mode-keys vi


      I would like to have vi binding for zsh, but the thing I missed the most is option+delete will delete 1 word backwards in INSERT mode like I have in zsh emacs mode. I know that I can use <C-W> to delete word but I really get used to Option-Delete. It's also consistent with what I used in the browser textbox, google doc... to delete 1 word so I'd like to keep it.
      How could I achieve this?



      And I also notice that if I enter some text in zsh vi mode, hit ESC to go to NORMAL mode, then back to INSERT mode using i, I can not delete previously entered text using delete key anymore. I can only enter new characters, or back to NORMAL mode and cc, dd to delete text. Any idea?







      terminal vim zsh tmux key-binding






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 hours ago









      San NguyenSan Nguyen

      1




      1






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421423%2fhow-to-bind-option-delete-to-backward-delete-word-in-zsh-vi-mode-in-tmux-and-ala%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421423%2fhow-to-bind-option-delete-to-backward-delete-word-in-zsh-vi-mode-in-tmux-and-ala%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

          Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

          Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...