Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ This is a mirror of http://www.vim.org/scripts/script.php?script_id=1961
Usage:
:Tabmerge [tab number] [top|bottom|left|right]

Configuration:
The default window location can be set to top, bottom, left or right.

let g:Tabmerge_default_window_location = 'top'


The tab number can be "$" for the last tab. If the tab number isn't specified the tab to the right of the current tab is merged. If there is no right tab, the left tab is merged.

The location specifies where in the current tab to merge the windows. Defaults to "top".
Expand Down
6 changes: 5 additions & 1 deletion plugin/Tabmerge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if v:version < 700
finish
endif

if !exists('g:Tabmerge_default_window_location')
let g:Tabmerge_default_window_location = 'top'
endif

command! -nargs=* Tabmerge call Tabmerge(<f-args>)

function! Tabmerge(...) " {{{1
Expand All @@ -45,7 +49,7 @@ function! Tabmerge(...) " {{{1
endif

if !exists('l:where')
let where = 'top'
let where = g:Tabmerge_default_window_location
endif

if !exists('l:tabnr')
Expand Down