vimr
vimr copied to clipboard
Use custom tabs
- Use Sierra's native tabs?
- Use a tab framework? What are the options?
I would love to use native tabs instead of Vim tabs, like MacVim does (I guess with a preference option). Using Sierra native tabs would be great as every tab framework I've seen has been a bit dodgy e.g. MacVim uses some framework but tabs can only be dragged left, dragging right doesn't work and other weird bugs.
Not so worried - most of the time I have vimr running in fullscreen and am quite happy with vim tabs. As note by @sfcgeorge, if this could be implemented with a preference option then that would likely work for everyone.
If vimr could implement tabs like the guys over at iterm2 are currently testing out that would be dope!
Also just the darkmode feature on it's own seems nice...
For people coming from MacVim (I'm looking at you, me) the tab widget is the first thing they (we) notice. Looks kinda janky.
Yes, just ... need ... some ... more ... free ... time ... 😌
I second iTerm3 tabs -- they're absolutely flawless, and very beautiful (both light and dark, like the image above). It's the main reason I want to switch away from MacVim... The other reason is how frustrating it is that MacVims outer window doesnt line up per pixel, so its always off by a few pixels when I use a window manager
Is this even remotely on a roadmap somewhere? I love VimR so much more than macvim except on this 1 area 👍
@qvacua please add this feature for the native tab.
Until this feature makes it in, is there a quick hack I can do to toggle between open tabs with ⌘⇪] and ⌘⇪[ (essentially map these shortcuts to a vim's :tabn
and :tabp
)
@muxcmux Try adding this to your config.
nnoremap <S-D-{> :tabp<CR>
vnoremap <S-D-{> :tabp<CR>
inoremap <S-D-{> :tabp<CR>
nnoremap <S-D-}> :tabn<CR>
vnoremap <S-D-}> :tabn<CR>
inoremap <S-D-}> :tabn<CR>
@rickyc you're a legend!
First version of custom tabs is online: https://github.com/qvacua/vimr/releases/tag/snapshot%2F20201210.181940
Improvements like keyboard shortcut for certain actions will follow soon.
Wonderful feature, great!!! Some comments:
-
It looks the preference of whether to use custom tab implementation would be in effect only after restarting VimR. I would suggest to have a note like "Restart required" in the preference panel.
-
How can we change highlight groups for those custom tabs? For me, there is a slight glitch on the foreground/background color (which are all white). FYI I am using vim-xtabline plugin and its default theme.
@wookayin
- It should be sufficient to open a new window, but, yes, I'll add a note.
- I think it'll be impossible (for me) to choose the correct colors for all colorschemes. I guess, we'll need a UI where the user can set the colors.