From 7d84531e60d5fdddf16b1c4d61332075127ce1c8 Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 30 Jul 2021 00:19:25 +0800 Subject: Add config about vimwiki and orgmode --- .vim/filetype.vim | 1 + .vim/plugin/lang.plug | 2 ++ .vim/plugin/vimwiki.plug | 3 +++ .vim/plugin/youcompleteme.vim | 2 +- .vimrc | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.vim/filetype.vim b/.vim/filetype.vim index 4d7e2c5..a1d5d7c 100644 --- a/.vim/filetype.vim +++ b/.vim/filetype.vim @@ -1,3 +1,4 @@ augroup filetypedetect + autocm BufRead,BufNewFile *.org setfiletype org autocmd BufRead,BufNewFile *mutt-* setfiletype mail augroup end diff --git a/.vim/plugin/lang.plug b/.vim/plugin/lang.plug index 338de43..6c40e71 100644 --- a/.vim/plugin/lang.plug +++ b/.vim/plugin/lang.plug @@ -1,2 +1,4 @@ +" vim: ft=vim + Plug 'habamax/vim-godot', {'for': 'gdscript'} diff --git a/.vim/plugin/vimwiki.plug b/.vim/plugin/vimwiki.plug index cba8593..76de8f5 100644 --- a/.vim/plugin/vimwiki.plug +++ b/.vim/plugin/vimwiki.plug @@ -1,3 +1,5 @@ +" vim: ft=vim + Plug 'vimwiki/vimwiki' let g:vimwiki_list = [{'path': '~/Documents/notes', @@ -7,3 +9,4 @@ au FileType vimwiki setlocal textwidth=72 let g:vimwiki_CJK_length = 1 let g:vimwiki_url_maxsave = 0 +let g:vimwiki_global_ext = 0 diff --git a/.vim/plugin/youcompleteme.vim b/.vim/plugin/youcompleteme.vim index 518fb34..d702738 100644 --- a/.vim/plugin/youcompleteme.vim +++ b/.vim/plugin/youcompleteme.vim @@ -10,5 +10,5 @@ let g:ycm_filetype_whilelist = { \ "lua": 1 \ } let g:ycm_filetype_blacklist = { - \ 'ledger': 1 + \ 'ledger': 1, 'markdown': 1, 'org': 1 \ } diff --git a/.vimrc b/.vimrc index 3e98c85..2cb1417 100644 --- a/.vimrc +++ b/.vimrc @@ -16,6 +16,8 @@ set formatoptions+=mB set formatoptions-=tc set secure +set nofoldenable + set hidden set completeopt=menu,menuone -- cgit v1.2.3