diff --git a/plugin/notecrate.vim b/plugin/notecrate.vim index e73dd07..c4ae632 100644 --- a/plugin/notecrate.vim +++ b/plugin/notecrate.vim @@ -4,6 +4,6 @@ if !exists("g:notecrate_dirs") \ } endif for [key, value] in items(g:notecrate_dirs) - execute "autocmd BufRead,BufNewFile " . value["dir"] . "/*.md set filetype=notecrate syntax=notecrate" - execute "normal! :nnoremap w" . value["prefix"] . " :e " . value["dir"] . "/index.md:let b:notecrate_dir = \"" . value["dir"] . "\":let b:notecrate_history = []\" + silent execute "autocmd BufRead,BufNewFile " . value["dir"] . "/*.md set filetype=notecrate syntax=notecrate" + silent execute "normal! :nnoremap w" . value["prefix"] . " :e " . value["dir"] . "/index.md:let b:notecrate_dir = \"" . value["dir"] . "\":let b:notecrate_history = []\" endfor diff --git a/syntax/notecrate.vim b/syntax/notecrate.vim index 4263066..40b0f92 100644 --- a/syntax/notecrate.vim +++ b/syntax/notecrate.vim @@ -8,8 +8,8 @@ setlocal nowrap syn match NotecrateLinkInternal /\(\](\)\@<=[^()]*\()\)\@=/ hi def link NotecrateLinkInternal orangeu -" syn match NotecrateBoldConceal /\*\*/ containedin=ALL -syn match NotecrateBoldConceal /\*\*/ conceal containedin=ALL +syn match NotecrateBoldConceal /\*\*/ containedin=ALL +" syn match NotecrateBoldConceal /\*\*/ conceal containedin=ALL syn match NotecrateLinkConceal /!*\[\+\([^\]]*](\)\@=/ conceal syn match NotecrateLinkConceal /\]\+\((\)\@=/ conceal