Say I am writing a plugin and constantly editing scripts in ftplugin
. How do I efficiently test the changes? I can't simply source
the editted file because they are filetype-specific. For example, if there is a line
set buftype=nofile
in the script, and I source
it, then whatever buffer I'm in will no longer be writable into a file...
I can open another vim instance to test the change, but that is not very efficient because I have to reopen one whenever I make changes to the ftplugin scripts.