fff.vim
fff.vim copied to clipboard
Open to directory containing file of current buffer
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/
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