You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple scenario where I would like to reload a script that contains a function and a command mapping. I have installed the vim-reload plugin however I do not see the changes taking place once I run ReloadScript for the currently open script. Any ideas?
The text was updated successfully, but these errors were encountered:
Are you running the literal command :ReloadScript or are you giving the command a filename to reload as an argument? (two different modes of operation and knowing the difference may point out where the problem is)
Do you get any messages when running the :ReloadScript command? (this would tell us the plug-in is at least trying to reload your Vim script)
Are you sure that the Vim script you're working on was loaded (sourced) before you tried to reload it? You can verify by checking that its filename appears in the output of the :scriptnames command.
Does using Vim's :source command properly reload your script?
then linked it to a command: command! -nargs=* HookMyFunc call MyFunc(<f-args>)
assigned a key: nmap <silent> <leader>z <Plug>MyHook
and defined a Plug:
`nnoremap MyHook :execute 'HookMyFunc ' . g:my_var_a . ' ' . g:my_var_b``
I have sourced that vim script. When I hit the key combination, I can see the message being displayed. Then when I go and change something in that script, for example, replace DEBUG with FOO and run :ReloadScript, nothing happens. No messages. And the function still prints the old message.
I have installed the script using NeoBundle maybe that has something to do with this?
Hi,
I have a simple scenario where I would like to reload a script that contains a function and a command mapping. I have installed the vim-reload plugin however I do not see the changes taking place once I run
ReloadScript
for the currently open script. Any ideas?The text was updated successfully, but these errors were encountered: