autoload/threesomelib/settings.py @ 369ed2855a55

Fix for consistency with other instructions on web page.
author A. S. Budden <abudden@gmail.com>
date Mon, 19 Sep 2011 13:12:48 +0100
parents cefc901de8a2
children (none)
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)

def boolsetting(name):
    if int(setting(name, 0)):
        return True
    else:
        False