sponsor Vim development Vim logo Vim Book Ad

TWcmd.vim : wincmd-style tab / window moving commands.

 script karma  Rating 13/4, Downloaded by 529    Comments, bugs, improvements  Vim wiki

created by
script type
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

- Stack visited windows and recover them when closing

## 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.vim.zip 1.3.0 2014-12-28 7.0 yssl - g:twcmd_restore_prevfocus has been changed to g:twcmd_focus_after_closing  which can be one of the string values, 'prev_win_curr_tab', 'prev_win_tab',or 'none'.
- change default focusing behavior to 'jump to the lastest window of the current tab'  when a window is closed. ('prev_win_curr_tab')
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:

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