コード例 #1
0
ファイル: test_vim.py プロジェクト: R4zzM/python-client
def test_list_runtime_paths():
    # Is this the default runtime path list?
    homedir = os.environ["HOME"] + "/.nvim"
    eq(
        vim.list_runtime_paths(),
        [homedir, "/usr/local/share/vim/vimfiles", "/usr/local/share/vim", "/usr/local/share/vim/vimfiles/after"],
    )
コード例 #2
0
ファイル: test_vim.py プロジェクト: R4zzM/python-client
def test_list_runtime_paths():
    # Is this the default runtime path list?
    homedir = os.environ['HOME'] + '/.nvim'
    eq(vim.list_runtime_paths(), [
        homedir, '/usr/local/share/vim/vimfiles', '/usr/local/share/vim',
        '/usr/local/share/vim/vimfiles/after'
    ])
コード例 #3
0
ファイル: test_vim.py プロジェクト: fornwall/python-client
def test_list_runtime_paths():
    # Is this the default runtime path list?
    homedir = os.environ['HOME'] + '/.nvim'
    eq(vim.list_runtime_paths(), [
        homedir,
        '/usr/local/share/vim/vimfiles',
        '/usr/local/share/vim',
        '/usr/local/share/vim/vimfiles/after'
    ])
コード例 #4
0
ファイル: test_vim.py プロジェクト: frewsxcv/python-client
def test_list_runtime_paths():
    # Is this the default runtime path list?
    homedir = os.environ['HOME'] + '/.nvim'
    dflt_rtp = [
        homedir,
        '/usr/local/share/nvim/vimfiles',
        '/usr/local/share/nvim',
        '/usr/local/share/nvim/vimfiles/after'
    ]
    # If the runtime is installed the default path
    # is nvim/runtime
    dflt_rtp2 = list(dflt_rtp)
    dflt_rtp2[2] += '/runtime'

    rtp = vim.list_runtime_paths()
    ok(rtp == dflt_rtp or rtp == dflt_rtp2)
コード例 #5
0
ファイル: test_vim.py プロジェクト: gkz/python-client
def test_list_runtime_paths():
    # Is this the default runtime path list?
    homedir = os.path.join(os.environ['HOME'], '.nvim')
    vimdir = vim.eval('$VIM')
    dflt_rtp = [
        homedir,
        os.path.join(vimdir, 'vimfiles'), vimdir,
        os.path.join(vimdir, 'vimfiles', 'after')
    ]
    # If the runtime is installed the default path
    # is nvim/runtime
    dflt_rtp2 = list(dflt_rtp)
    dflt_rtp2[2] = os.path.join(dflt_rtp2[2], 'runtime')

    rtp = vim.list_runtime_paths()
    ok(rtp == dflt_rtp or rtp == dflt_rtp2)
コード例 #6
0
ファイル: test_vim.py プロジェクト: alaric/python-client
def test_list_runtime_paths():
    # Is this the default runtime path list?
    homedir = os.path.join(os.environ['HOME'], '.nvim')
    vimdir = vim.eval('$VIM')
    dflt_rtp = [
        homedir,
        os.path.join(vimdir, 'vimfiles'),
        vimdir,
        os.path.join(vimdir, 'vimfiles', 'after')
    ]
    # If the runtime is installed the default path
    # is nvim/runtime
    dflt_rtp2 = list(dflt_rtp)
    dflt_rtp2[2] = os.path.join(dflt_rtp2[2], 'runtime')

    rtp = vim.list_runtime_paths()
    ok(rtp == dflt_rtp or rtp == dflt_rtp2)