From: Bart Trojanowski Date: Fri, 27 Nov 2009 18:08:30 +0000 (-0500) Subject: vim: have ,nmr just reload the plugin w/o restarting state X-Git-Tag: 0.1~313^2~10 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=ef8127076072f743f396cb3d3df946423c1dbbd4 vim: have ,nmr just reload the plugin w/o restarting state --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 8ef6ac5a..4e164b8d 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -1337,7 +1337,7 @@ function! s:NM_set_map(type, maps) exec printf('%snoremap %s %s', a:type, key, code) endfor " --- this is a hack for development :) - nnoremap ,nmr :source ~/.vim/plugin/notmuch.vim:call NotMuch('') + nnoremap ,nmr :runtime! plugin/notmuch.vim endfunction " --- command handler {{{1