dylanaraps / fff.vim

A plugin for vim/neovim which allows you to use fff as a file opener.
MIT License
104 stars 11 forks source link

Add 'Open in directory of current file' example to README #11

Open MoonPadUSer opened 3 years ago

MoonPadUSer commented 3 years ago

In response to issue #7

Roy-Orbison commented 3 years ago
nnoremap <expr> <silent>f ':F ' . expand('%:p:h:S') . "\n"

Prevents the command from breaking on directories with characters like spaces or apostrophes.