plugin/threesomelib/util/windows.py @ a7fd8bdc3c5a
semver
Added tag v0.0.1 for changeset c353930abfc4
author |
Steve Losh <steve@stevelosh.com> |
date |
Mon, 13 Jun 2011 01:09:38 -0400 |
parents |
bb3247356f22 |
children |
0797e3cc5020 |
import vim
def focus(winnr):
vim.command('%dwincmd w' % winnr)
def close(winnr):
focus(winnr)
vim.command('wincmd c')
def close_all():
for winnr in range(len(vim.windows) - 1):
close(winnr)
def split():
vim.command('wincmd s')
def vsplit():
vim.command('wincmd v')
def currentnr():
return int(vim.eval('winnr()'))