Is there a way to switch between tabs in vim using `⌘ + ⌥` - `left or right` like Google Chrome or Sublime Text?

StackOverflow https://stackoverflow.com/questions/22705031

  •  23-06-2023
  •  | 
  •  

Frage

I realize this may be a small thing, but I enjoy being able to quickly switch between current tabs this way. I'm basically looking for how to put this in my .vimrc file. I've edited key bindings plenty for Sublime Text but not for Vim.

I'm using iTerm as the GUI.

Thanks for any davice!

War es hilfreich?

Lösung

You can't do that in CLI Vim because:

  • it doesn't understand multiple modifier keys
  • it doesn't understand the key anyway (only MacVim does and only in its GUI incarnation)

But you can create custom shortcuts in iTerm itself that send raw characters to the terminal.

iTerm Preferences

Anyway, the default gt and gT are far better, buit-in and guaranteed to work everywhere. What is the most important weapon in your arsenal? Vim or Chrome? Get used to Vim's way or you'll never rip any benefit.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top