vim 将选项卡移动到所有其他选项卡的末尾

问题描述 投票:0回答:1

在 vim 中有没有办法将一个选项卡移动到所有其他选项卡的末尾(向右),而不必计算有多少选项卡并输入该数字?

有时我打开了很多选项卡,并且打开了 tmux 窗格。我不想放大 vim 窗口,计算选项卡的数量,然后

:tabm n

vim tabs move
1个回答
0
投票

搞清楚。它的

tabm $

来自文档

:tabm[ove] [N]                      :tabm :tabmove
:[N]tabm[ove]
        Move the current tab page to after tab page N.  Use zero to
        make the current tab page the first one.  N is counted before
        the move, thus if the second tab is the current one,
        `:tabmove 1` and `:tabmove 2`  have no effect.
        Without N the tab page is made the last one. 
            :.tabmove   " do nothing
            :-tabmove   " move the tab page to the left
            :+tabmove   " move the tab page to the right
            :0tabmove   " move the tab page to the beginning of the tab
                " list
            :tabmove 0  " as above
            :tabmove    " move the tab page to the last
            :$tabmove   " as above
            :tabmove $  " as above
            :tabmove #  " move the tab page after the last accessed
                " tab page
© www.soinside.com 2019 - 2024. All rights reserved.