]> git.cworth.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 daff4aab120dcb9cce5c0c1e3c858ac95de56e8c..4e164b8d3b0357ede14174664aa3c720cd7309c3 100644 (file)
@@ -1213,7 +1213,7 @@ endfunction
 " example:
 "     NM_combine_tags('tag:', ['one', 'two', 'three'], 'OR', '()')
 "  -> ['(', 'tag:one', 'OR', 'tag:two', 'OR', 'tag:three', ')']
-function s:NM_combine_tags(word_prefix, words, separator, brackets)
+function! s:NM_combine_tags(word_prefix, words, separator, brackets)
         let res = []
         for word in a:words
                 if len(res) && strlen(a:separator)
@@ -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