mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Silence warning messages from vw2html,
Make markdown files not be swallowed by vimwiki ft.
This commit is contained in:
14
vimrc
14
vimrc
@@ -345,9 +345,17 @@ endfunction
|
|||||||
function s:SetVimwikiSettings() "{{{2
|
function s:SetVimwikiSettings() "{{{2
|
||||||
let b:ale_enabled=0
|
let b:ale_enabled=0
|
||||||
setlocal spell
|
setlocal spell
|
||||||
setlocal makeprg=vw2html\ \"%\"
|
setlocal makeprg=vw2html\ -q\ \"%\"
|
||||||
map <S-F5> :Vimwiki2HTMLBrowse<CR>
|
map <S-F5> :Vimwiki2HTMLBrowse<CR>
|
||||||
map <C-F5> :PyVimwikiAll2Html<CR>
|
map <C-F5> :PyVimwikiAll2Html<CR>
|
||||||
|
|
||||||
|
let g:tagbar_type_vimwiki = {
|
||||||
|
\ 'ctagstype' : 'vimwiki',
|
||||||
|
\ 'kinds' : [
|
||||||
|
\ 'h:header',
|
||||||
|
\ ],
|
||||||
|
\ 'sort' : 0
|
||||||
|
\ }
|
||||||
endfunction
|
endfunction
|
||||||
"}}}
|
"}}}
|
||||||
function s:SetGitcommitSettings() "{{{2
|
function s:SetGitcommitSettings() "{{{2
|
||||||
@@ -529,6 +537,8 @@ let g:vimwiki_list = [{'path': '~/vimwiki/',
|
|||||||
\ 'template_ext': '.tpl',
|
\ 'template_ext': '.tpl',
|
||||||
\ 'css_name': 'vimwiki_style.css'}]
|
\ 'css_name': 'vimwiki_style.css'}]
|
||||||
let g:vimwiki_valid_html_tags = 'b,i,s,u,sub,sup,kbd,br,hr,span'
|
let g:vimwiki_valid_html_tags = 'b,i,s,u,sub,sup,kbd,br,hr,span'
|
||||||
|
" Do not make syntax=vimwiki for markdown files, ignore md as vimwiki flavor
|
||||||
|
let g:vimwiki_ext2syntax = {}
|
||||||
"redefine tab key for vimwiki
|
"redefine tab key for vimwiki
|
||||||
map <Leader>wn <Plug>VimwikiNextWord
|
map <Leader>wn <Plug>VimwikiNextWord
|
||||||
map <Leader>wp <Plug>VimwikiPrevWord
|
map <Leader>wp <Plug>VimwikiPrevWord
|
||||||
@@ -758,7 +768,7 @@ function ConvertVimwikiToHtml(forced, currentfile)
|
|||||||
" not vimwiki file, do nothing
|
" not vimwiki file, do nothing
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let l:command = 'vw2html'
|
let l:command = 'vw2html -q'
|
||||||
if a:forced == 1
|
if a:forced == 1
|
||||||
let l:command = l:command . ' -f'
|
let l:command = l:command . ' -f'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user