I have a text file with lots of links to local directories which cointains .pdf files.
I know about gf
, but is there a way to open only the directory and not the file?
For example, from this link ~/myDir/subfolder/file.pdf
jump to /subfolder
or even better open the .pdf in a pdf reader from vim
Thanks in advance for your insights and experience
gF
, remap it to do:browse
based on the cursor position? Better, map it to:Explore
(see:help netrw
)