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.

LeaderfFile doesn't show files in MacVim.

See original GitHub issue
  • vim or neovim?
    • vim
    • neovim
  • Output of vim --version or nvim --version:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 18 2019 23:51:40)
macOS version
Included patches: 1-950
Compiled by travis@Traviss-Mac.local
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         -tag_any_white
+arabic            +file_in_path      -mouse_sysmouse    -tcl
+autocmd           +find_in_path      +mouse_urxvt       +termguicolors
+autochdir         +float             +mouse_xterm       +terminal
-autoservername    +folding           +multi_byte        +terminfo
+balloon_eval      -footer            +multi_lang        +termresponse
+balloon_eval_term +fork()            -mzscheme          +textobjects
+browse            +fullscreen        +netbeans_intg     +textprop
++builtin_terms    -gettext           +num64             +timers
+byte_offset       -hangul_input      +odbeditor         +title
+channel           +iconv             +packages          +toolbar
+cindent           +insert_expand     +path_extra        +transparency
+clientserver      +job               +perl/dyn          +user_commands
+clipboard         +jumplist          +persistent_undo   +vartabs
+cmdline_compl     +keymap            +postscript        +vertsplit
+cmdline_hist      +lambda            +printer           +virtualedit
+cmdline_info      +langmap           +profile           +visual
+comments          +libcall           +python/dyn        +visualextra
+conceal           +linebreak         +python3/dyn       +viminfo
+cryptv            +lispindent        +quickfix          +vreplace
+cscope            +listcmds          +reltime           +wildignore
+cursorbind        +localmap          +rightleft         +wildmenu
+cursorshape       +lua/dyn           +ruby/dyn          +windows
+dialog_con_gui    +menu              +scrollbind        +writebackup
+diff              +mksession         +signs             -X11
+digraphs          +modify_fname      +smartindent       -xfontset
+dnd               +mouse             +startuptime       +xim
-ebcdic            +mouseshape        +statusline        -xpm
+emacs_tags        +mouse_dec         -sun_workshop      -xsmp
+eval              -mouse_gpm         +syntax            -xterm_clipboard
+ex_extra          -mouse_jsbterm     +tag_binary        -xterm_save
+extra_search      +mouse_netterm     +tag_old_static
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework AppKit   -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE
  • Output of :echo has("python"):
0
  • Output of :echo has("python3"):
1
  • Output of :echo &pythondll(only vim, not neovim):
/usr/local/Frameworks/Python.framework/Versions/2.7/Python
  • Output of :echo &pythonthreedll(only vim, not neovim):
/usr/local/Frameworks/Python.framework/Versions/3.7/Python
  • Output of :py print(sys.version):
E836: This Vim cannot execute :python after using :py3
E263: Sorry, this command is disabled, the Python library could not be loaded.
  • Output of :py3 print(sys.version):
3.7.3 (default, Mar 27 2019, 09:23:15)
[Clang 10.0.1 (clang-1001.0.46.3)]
  • Output of :echo g:Lf_Debug_Cmd:
ag --nocolor --silent     -g "" "."
  • Output of :echo g:Lf_FilesFromCache:
1
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc:
Plug 'Yggdroot/LeaderF', { 'do': './install.sh' }

" Use default settings of LeaderF

Describe your question, feature request, or bug.

LeaderfFile doesn’t show files in MacVim, unless it is fired within some project directory, such as a git repository. It works fine within the terminal version of Vim. (The terminal version of Vim is the one bundled with MacVim vim: aliased to mvim -v)

Steps to reproduce

Launch LeaderfFile within my $GOPATH, nothing shows in MacVim. Screen Shot 2019-05-27 at 14 42 01 Screen Shot 2019-05-27 at 14 42 33 LeaderfFile works fine within terminal version of Vim. Screen Shot 2019-05-27 at 14 41 56 Screen Shot 2019-05-27 at 14 42 28

If fired within a git repository in $GOPATH, it works fine again. Screen Shot 2019-05-27 at 15 04 14

Actual behaviour

LeaderfFile doesn’t show files in MacVim, unless it is fired within some project directory.

Expected behaviour

LeaderfFile in MacVim should work whether or not fired within a project directory.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Yggdrootcommented, Dec 14, 2020

As per discussion in macvim-dev/macvim#1003 it’s a bug in LeaderF itself and this issue should be reopened.

Thanks, the issue is fixed.

0reactions
eirnymcommented, Dec 12, 2020

As per discussion in macvim-dev/macvim#1003 it’s a bug in LeaderF itself and this issue should be reopened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing leader in Vim - Stack Overflow
Create a blank .vimrc file in your $HOME directory: $ cd $ touch .vimrc · Open your blank ~/.vimrc and add these lines:...
Read more >
Automatic comment leader not inserted on some file types
I have a filetype (Stata .do files) in which the comment character is * . Anything after this character is considered a comment...
Read more >
Using Netrw, vim's builtin file explorer | Devlog
How to call it ... Our first stop is the :Explore command. Using it with no arguments will show the directory of the...
Read more >
options - Vim documentation
This can be used to set options for files matching a particular pattern and many other things. See |autocommand|. 3. If you start...
Read more >
How to search and open files in Vim without plugins
If file doesn't exist, it creates a new file in current buffer. ... Post tab, Vim will list you all .yml files in...
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