question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test.vim

" $XDG_CONFIG_HOME/test.vim
set runtimepath=$VIMRUNTIME,$GITHUBWORKSPACE/Shougo/defx.nvim
nnoremap <expr> ; defx#do_action('drop', 'split')

Reproduce Procedures

in shell

vi -u $XDG_CONFIG_HOME/test.vim

in vi

" now working directory of this buffer is ~
Defx `$XDG_CONFIG_HOME` -split
lcd $XDG_CONFIG_HOME
" now working directory of defx is $XDG_CONFIG_HOME
" press ; in init.vim
" you will open an empty file ~/nvim/init.vim not $XDG_CONFIG_HOME/nvim/init.vim
" because the 2 buffers have differenet working directories
" i guess that some path variable should be absoluate path not relative path to solve this problem

Environment

  • vi: nvim 0.4.3
  • OS: linux 5.4.13

It is mime, although I think this problem should exist in other environments.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dietrichmcommented, Sep 4, 2020

Thanks @Shougo, this seems like a valid fix to me. I’m glad we could keep the relative path behaviour in place.

Dietrich

0reactions
Shougocommented, Sep 4, 2020

I have added haslocaldir() check for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drop Error - Monash Business School
Drop Error. a mistake made by a company in deciding to abandon a new product idea that, in hindsight, might have been successful...
Read more >
Twitch Drops 'Error occurred drop was not claimed' fix
Here is how to fix the Twitch Drops "Error occurred drop was not claimed" message. Users struggling to get rewards will want to...
Read more >
Drop Error - RAJADHARMAM
A Drop error is when a mistake made by a company in deciding to abandon a new product idea that, in hindsight, might...
Read more >
Drop Errors and The Trouble with Peer Review | Mises Wire
The "drop" error occurs when an idea that could have been highly profitable is eliminated from further consideration.
Read more >
drop error class - Sybase Infocenter
Use the drop error class command to remove an error class. When an error class is dropped, all actions assigned for it are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found