Skyler Grey | f819460 | 2022-10-31 00:07:05 +0000 | [diff] [blame] | 1 | set conceallevel=2 |
| 2 | let g:vim_markdown_no_extensions_in_markdown = 1 |
| 3 | let g:vim_markdown_new_list_item_indent = 2 |
| 4 | let g:vim_markdown_autowrite = 1 |
| 5 | |
Skyler Grey | 81f4af6 | 2022-10-31 00:10:52 +0000 | [diff] [blame] | 6 | let g:pandoc#filetypes#pandoc_markdown = 0 |
| 7 | let g:pandoc#filetypes#handled = ["pandoc", "rst", "textile", "markdown"] |
| 8 | let g:pandoc#formatting#textwidth = 80 |
| 9 | let g:pandoc#formatting#mode = "h" |
| 10 | let g:pandoc#spell#enabled = 0 |
Skyler Grey | e9e4585 | 2022-10-31 00:16:58 +0000 | [diff] [blame] | 11 | |
| 12 | let g:mkdp_auto_close = 0 |
Skyler Grey | 0c024ef | 2022-10-31 00:17:14 +0000 | [diff] [blame] | 13 | |
| 14 | autocmd FileType markdown call tablemode#Enable() |
Skyler Grey | 508060d | 2023-01-26 00:35:47 +0000 | [diff] [blame] | 15 | |
| 16 | call g:SetupCommandAlias("goyo", "Goyo") |
| 17 | nnoremap <silent> <leader>wm :Goyo<CR> |
| 18 | let g:goyo_width = 83 |
| 19 | |
| 20 | function s:DisableTextwidthOnTable() |
| 21 | if tablemode#table#IsTable(".") |
| 22 | setlocal textwidth=0 |
| 23 | else |
| 24 | let &l:textwidth=&g:textwidth |
| 25 | endif |
| 26 | endfunction |
| 27 | |
| 28 | autocmd CursorMovedI,CursorMoved,BufEnter *.md call s:DisableTextwidthOnTable() |