weixin_39535557
weixin_39535557
2020-12-06 18:30

doesn't work if directory contains no '.git'

  • vim or neovim?
    • [x] vim
    • [ ] neovim
  • Output of vim --version or nvim --version: $ vim --version

VIM - Vi IMproved 8.1 (2018 May 17, compiled May 17 2018 15:38:53)
MS-Windows 32-bit console version
Compiled by mool
Huge version without GUI.  Features included (+) or not (-):
+acl               +eval              -mouseshape        -tag_any_white
+arabic            +ex_extra          +multi_byte        -tcl
+autocmd           +extra_search      +multi_lang        +termguicolors
+autoservername    +farsi             -mzscheme          +terminal
-balloon_eval      +file_in_path      -netbeans_intg     -tgetent
+balloon_eval_term +find_in_path      +num64             -termresponse
-browse            +float             +packages          +textobjects
++builtin_terms    +folding           +path_extra        +timers
+byte_offset       -footer            -perl              +title
+channel           +gettext/dyn       +persistent_undo   -toolbar
+cindent           -hangul_input      -postscript        +user_commands
+clientserver      +iconv/dyn         +printer           +vertsplit
+clipboard         +insert_expand     +profile           +virtualedit
+cmdline_compl     +job               -python            +visual
+cmdline_hist      +jumplist          -python3           +visualextra
+cmdline_info      +keymap            +quickfix          +viminfo
+comments          +lambda            +reltime           +vreplace
+conceal           +langmap           +rightleft         +vtp
+cryptv            +libcall           -ruby              +wildignore
+cscope            +linebreak         +scrollbind        +wildmenu
+cursorbind        +lispindent        +signs             +windows
+cursorshape       +listcmds          +smartindent       +writebackup
+dialog_con        +localmap          +startuptime       -xfontset
+diff              -lua               +statusline        -xim
+digraphs          +menu              -sun_workshop      -xpm_w32
-dnd               +mksession         +syntax            -xterm_save
-ebcdic            +modify_fname      +tag_binary
+emacs_tags        +mouse             +tag_old_static
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$HOME\vimfiles\vimrc"
 3rd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
       defaults file: "$VIMRUNTIME\defaults.vim"
Compilation: cl -c /W3 /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32  -DFEAT_CSCOPE -DFEAT_TERMINAL  -DFEAT_JOB_CHANNEL      -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /arch:IA32 /Zl /MT -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_HUGE /Fd.\ObjCi386/ /Zi
Linking: link  /nologo /subsystem:console,5.01 /opt:ref /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  comdlg32.lib ole32.lib uuid.lib /machine:i386   libcmt.lib  user32.lib          WSock32.lib  /PDB:vim.pdb -debug

  • Output of :echo has("python"): 1
  • Output of :echo has("python3"): 0
  • Output of :echo &pythondll(only vim, not neovim): python27.dll
  • Output of :echo &pythonthreedll(only vim, not neovim): python36.dll
  • Output of :py print(sys.version): 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
  • Output of :py3 print(sys.version): Could not load library python36.dll
  • Output of :echo g:Lf_Debug_Cmd: Undefined variable: g:Lf_Debug_CMD
  • Operating system:
    • [ ] Linux
    • [ ] Mac OS X
    • [x] Windows
    • [ ] Etc.
  • Configurations related to LeaderF in vimrc:
vim
Plug 'Yggdroot/LeaderF', { 'do': '.\install.bat' }
let g:Lf_ShortcutF = '<c-p>'
let g:Lf_WildIgnore = {
        \ 'dir': ['.svn','.git','build','debug','release','reldbg','DS_Store','.exvim.*','jqwidgets'],
        \ 'file': ['*.sw?','~$*','*.bak','*.exe','*.o','*.so','*.py[co]','*.pb.h','*.pb.cc']
        \}
let g:Lf_DefaultMode='Regex'
let g:Lf_CommandMap = {'<c-c>': ['<esc>']}
</esc></c-c></c-p>

Describe your question, feature request, or bug.

No file listed if the directory doesn't contain '.git'.

Steps to reproduce

  1. create an dir c:/test
  2. create file c:/test/a.txt
  3. open a.txt in vim, press Ctrl+P to open LeaderF window

Actual behaviour

no file listed

Expected behaviour

the a.txt is listed

该提问来源于开源项目:Yggdroot/LeaderF

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39535557 weixin_39535557 5月前

    2018-07-20_011637 1. :Leaderf 2. :echo g:Lf_Debug_Cmd

    点赞 评论 复制链接分享
  • weixin_39637049 weixin_39637049 5月前

    There is a bug in vim, please use rg instead.

    点赞 评论 复制链接分享
  • weixin_39535557 weixin_39535557 5月前

    Thanks. rg works perfect.

    点赞 评论 复制链接分享
  • weixin_39637049 weixin_39637049 5月前

    What is the output of :echo g:Lf_Debug_Cmd after running :Leaderf file?

    点赞 评论 复制链接分享

相关推荐