]> git.notmuchmail.org Git - notmuch/blobdiff - vim/plugin/notmuch.vim
vim: have ,nmr just reload the plugin w/o restarting state
[notmuch] / vim / plugin / notmuch.vim
index 8ef6ac5a210da51ba8bf74d3001b4083593fe8e0..4e164b8d3b0357ede14174664aa3c720cd7309c3 100644 (file)
@@ -1337,7 +1337,7 @@ function! s:NM_set_map(type, maps)
                 exec printf('%snoremap <buffer> %s %s', a:type, key, code)
         endfor
         " --- this is a hack for development :)
-        nnoremap ,nmr :source ~/.vim/plugin/notmuch.vim<CR>:call NotMuch('')<CR>
+        nnoremap ,nmr :runtime! plugin/notmuch.vim<CR>
 endfunction
 
 " --- command handler {{{1