plugin/threesomelib/settings.py @ 94dd97c75c52

Added tag v0.0.4 for changeset 67daf5c309d3
author Steve Losh <steve@stevelosh.com>
date Mon, 13 Jun 2011 16:48:58 -0400
parents fe0302428a49
children b9e75c5a9f2c
import vim


def setting(name, default=None):
    full_name = 'g:threesome_' + name

    if not int(vim.eval('exists("%s")' % full_name)):
        return default
    else:
        return vim.eval(full_name)