sponsor Vim development Vim logo Vim Book Ad

twcmd.vim : vim's wincmd-style extended tab / window moving commands.

 script karma  Rating 8/2, Downloaded by 127    Comments, bugs, improvements  Vim wiki

created by
yssl
 
script type
utility
 
description
More information : https://github.com/yssl/twcmd.vim

# twcmd.vim

twcmd.vim is a set of useful commands for moving & managing tabs and windows in vim.

- Move a tab / window
https://cloud.githubusercontent.com/assets/5915359/3844245/89017712-1e47-11e4-9f19-089d56a035d8.gif

- Stack visited windows and recover them when closing
https://cloud.githubusercontent.com/assets/5915359/3351949/c7c4c2d6-fa27-11e3-816a-f448657a5dba.gif

## Usage
In vim normal mode, type the following command and press `<Enter>`.  
**:TWcmd {cmd} {arg}**  
- {cmd} : sub-commands for tabs or windows
- {arg} : vim's `:wincmd`-style single character arguments

For example,
```
:TWcmd tcm l    |" go to the right tab
:TWcmd tmv l    |" move the current tab right
:TWcmd wmv h    |" move the current window left
:TWcmd tcm q    |" close current tab
```

## Commands

{cmd}   | description
---     | ---
tcm     | tab commands
tmv     | tab moving commands
wcm     | window commands
wmv     | window moving commands
wmvt    | window moving commands between tabs
twh     | tab-window history commands


For more information, please visit https://github.com/yssl/twcmd.vim.
 
install details
- Using plugin managers (recommended)
    - [Vundle] : Add `Bundle 'yssl/twcmd.vim'` to .vimrc & `:BundleInstall`
    - [NeoBundle] : Add `NeoBundle 'yssl/twcmd.vim'` to .vimrc & `:NeoBundleInstall`
    - [vim-plug] : Add `Plug 'yssl/twcmd.vim'` to .vimrc & `:PlugInstall`
- Using [Pathogen]
    - `cd ~/.vim/bundle; git clone https://github.com/yssl/twcmd.vim.git`
- Manual install (not recommended)
    - Download this plugin and extract it in `~/.vim/`
 

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
twcmd.zip 1.2.0 2014-08-07 7.0 yssl - change the name to twcmd.vim
TWCommand.zip 1.1.0 2014-06-22 7.0 yssl - add tab-window history stack feature
- update screencast
- update documents
TWCommand.zip 1.0.0 2014-02-28 7.0 yssl Initial upload
ip used for rating: 54.90.66.237

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.
   
SourceForge.net Logo