New answers tagged

0

I ended up using this command in my vimrc with fzf.vim, specifically filtering directories in my current git repo. function! s:append_dir_with_fzf(line) call fzf#run(fzf#wrap({ \ 'options': ['--prompt', a:line.'> '], \ 'source': 'git ls-files $(git rev-parse --show-toplevel) | xargs -n 1 dirname | uniq', \ 'sink': {line -> feedkeys("\<...


0

Using fzf.vim, it has the wrapper for Files, (and GFiles, which respect the gitignore while searching) Under current directory, run :Files, fzf will open a list of files to search. Remember, this only search file names, not file's contents. Hit c-x for split, or c-v for vsplit. If you want to preview the content inside the file, set this in .vimrc: " ...


Top 50 recent answers are included