]> git.notmuchmail.org Git - notmuch/commitdiff
vim: have ,nmr just reload the plugin w/o restarting state
authorBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 18:08:30 +0000 (13:08 -0500)
committerBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 18:08:30 +0000 (13:08 -0500)
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