From 6bec8d473b2fb7fecfe7fc18f58eea7b95ac9058 Mon Sep 17 00:00:00 2001 From: listout Date: Mon, 31 May 2021 13:06:35 +0530 Subject: use settings only in groups; augroup --- configs/vimwiki.vim | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'configs') diff --git a/configs/vimwiki.vim b/configs/vimwiki.vim index 37eff6d..5481390 100644 --- a/configs/vimwiki.vim +++ b/configs/vimwiki.vim @@ -13,6 +13,16 @@ augroup pandoc_syntax autocmd! FileType vimwiki set syntax=markdown.pandoc augroup END -" Prevent remapping so i can interact with an open OmniCompletion popup -inoremap pumvisible() ? "\" : ":VimwikiReturn 1 5" -inoremap pumvisible() ? "\" : ":VimwikiReturn 2 2" +augroup ft_vimwiki + au! + + " Automatically generate a header for new wiki pages. + " NOTE: Waiting for g:vimwiki_auto_header to get added. Think it's still in the dev branch. + " Prevent remapping so i can interact with an open OmniCompletion popup: + " SOURCE: https://github.com/vimwiki/vimwiki/blob/master/doc/vimwiki.txt#L1491 + " SOURCE: https://github.com/vimwiki/vimwiki/issues/283 + au FileType vimwiki inoremap + \ pumvisible() ? "\" : ":VimwikiReturn 1 5" + au FileType vimwiki inoremap + \ pumvisible() ? "\" : ":VimwikiReturn 2 2" +augroup END -- cgit v1.2.3