fff.vim icon indicating copy to clipboard operation
fff.vim copied to clipboard

Open to directory containing file of current buffer

Open roginfarrer opened this issue 5 years ago • 1 comments

Just discovered fff and fff.vim, and really enjoying using it!

One thing I miss from other vim-like file management plugins is opening it directly to the directory containing the file from my current buffer (like in dirvish or netrw). For example, if I'm in a project, and the current buffer is open to project/src/tests/foo.test.js, I would like to be able to open fff to project/src/tests/ instead of project/

roginfarrer avatar Feb 23 '20 20:02 roginfarrer

Personnaly I put autocmd BufEnter * silent! lcd %:p:h in my init.vim as mentionned here https://vim.fandom.com/wiki/Set_working_directory_to_the_current_file

davidlm83 avatar May 18 '20 17:05 davidlm83