tpope / vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing
https://www.vim.org/scripts/script.php?script_id=5671
2.23k stars 87 forks source link

Exposing an 'escaped' like function. #96

Open lemnos opened 6 years ago

lemnos commented 6 years ago

I was in the process of writing a vimscript function which requires the current netrw file and started looking at your code for guidance. It seems exactly of what I need is implemented in your 'escaped' script function and is exposed as a keybinding. I imagine I am not the only one who might find such a function useful, perhaps you can consider exposing it for plugin developers and people who write their own vim functions.

tpope commented 6 years ago

I'm generally hesitant to commit to maintaining APIs. I'm inclined to suggest you instead invoke . directly with something like .YourCommand<CR>, until I hear a reason that's insufficient.