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
  •  | 
  •  

문제

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!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top