blob: c6bd8f13eed6313cb007fa663f927850cad37151 [file] [log] [blame]
Skyler Greyf8194602022-10-31 00:07:05 +00001set conceallevel=2
2let g:vim_markdown_no_extensions_in_markdown = 1
3let g:vim_markdown_new_list_item_indent = 2
4let g:vim_markdown_autowrite = 1
5
Skyler Grey81f4af62022-10-31 00:10:52 +00006let g:pandoc#filetypes#pandoc_markdown = 0
7let g:pandoc#filetypes#handled = ["pandoc", "rst", "textile", "markdown"]
8let g:pandoc#formatting#textwidth = 80
9let g:pandoc#formatting#mode = "h"
10let g:pandoc#spell#enabled = 0
Skyler Greye9e45852022-10-31 00:16:58 +000011
12let g:mkdp_auto_close = 0
Skyler Grey0c024ef2022-10-31 00:17:14 +000013
14autocmd FileType markdown call tablemode#Enable()
Skyler Grey508060d2023-01-26 00:35:47 +000015
16call g:SetupCommandAlias("goyo", "Goyo")
17nnoremap <silent> <leader>wm :Goyo<CR>
18let g:goyo_width = 83
19
20function s:DisableTextwidthOnTable()
21 if tablemode#table#IsTable(".")
22 setlocal textwidth=0
23 else
24 let &l:textwidth=&g:textwidth
25 endif
26endfunction
27
28autocmd CursorMovedI,CursorMoved,BufEnter *.md call s:DisableTextwidthOnTable()