sponsor Vim development Vim logo Vim Book Ad

tabops : A collection of miscellaneous functionalities operating tabs.

 script karma  Rating 19/7, Downloaded by 2016  Comments, bugs, improvements  Vim wiki

created by
Shuhei Kubota
 
script type
utility
 
description
Description:

  This script provides tab operation functionalities.
  Going to some tab, moving some tab and sorting tabs.


Usage:
  1. (optional) set prefix if you want to change. (let g:Tabops_prefix)
     default: <Tab>
  2. (optional) let g:Tabops_use??? variables 0 if you want to disable some features.
  3. start editing
                                                                                      
  X. execute :Tabops command with some parameters (see Feature section)
                                                                                      
Feature:
                                                                                      
  * the default prefix is <Tab>
                                                                                      
  if g:Tabops_useGoto == 1 then ...
      <C-Tab>  : goto the next tab.
      <S-C-Tab>: goto the prev tab.
                                                                                      
      {prefix}1: goto the 1st tab.
      {prefix}2: goto the 2nd tab.
         :
      {prefix}8: goto the 8th tab.
      {prefix}9: goto the LAST tab.
                                                                                      
  if g:Tabops_useMove == 1 then ...
      {prefix}l: swap the current tab with the right one.
      {prefix}h: swap the cerrent tab with the left one.
                                                                                      
                                                                                      
  :Tabops [Close | Open | ...]
      Close
          Right
          Left
              closes right/left tabs except the current tab.
      Open
          Siblings [LOADED]
              scans buffers that are in the same directory, and open them in tabs.
              with LOADED, only loaded buffers are read in tabs. (not globbed)
          WndInNewTab
              (in splitted window) closes the current window and opens it in new tab.
      Reopen
          re-opens a closed tab.
      Sort
          ByPath
              sorts tabs comparing their paths.
          ByBufnr
              sorts tabs comparing their internal numbers.
          ByLastChange
              sorts tabs comparing their recently-changed timestamps.
              the most recent tab comes to left.
      Uniq
          closes duplicate tabs.
 
install details
Just source this file. (Put this file into the plugin directory.)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tabops.vim 0.7.0 2018-08-04 7.0 Shuhei Kubota fix tab swap
tabops.vim 0.6.2 2012-09-13 7.0 Shuhei Kubota fixed Open-Sibling globbing. (file path containing spaces)
tabops.vim 0.6.1 2011-06-20 7.0 Shuhei Kubota changed EOL characters.
tabops.vim 0.6 2011-03-11 7.0 Shuhei Kubota improved Sort ByLastChange to handle changed date and time.
tabops.vim 0.5 2010-12-14 7.0 Shuhei Kubota 1. Parameterized commands (:TabopsSortByBufnr -> :Tabops Sort ByBufnr)
2. Added command :Tabops Open WndInNewTab (reopens the current window in a new tab)
tabops.vim 0.4 2010-09-17 7.0 Shuhei Kubota Added command :TabopsCloseRight/Left
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github