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"], )
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' ])
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)
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)