From d3002bc73902fd7319e93de58e8957c0e180250d Mon Sep 17 00:00:00 2001 From: Girish Bharadwaj Date: Mon, 17 Jun 2013 10:49:26 -0300 Subject: [PATCH] Update README.md having HTML and markdown in the same omnifunc seems to slow down the html tag completion quite dramatically. Not sure if it was just me but to be safe, separating them out to two different autocmds seemed to solve the problem. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23f7967..74712e4 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,9 @@ inoremap neocomplcache#cancel_popup() " Enable omni completion. autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS -autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags +autocmd FileType html setlocal omnifunc=htmlcomplete#CompleteTags +autocmd FileType markdown setlocal omnifunc=htmlcomplete#CompleteTags + autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS autocmd FileType python setlocal omnifunc=pythoncomplete#Complete autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags