commit 1ec03c503a28e4b4caee73139dbc0ad3a943b4c7
parent 95d582693fb0fe62e8e8e4e3aae560e157fb3d24
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 28 Jan 2020 00:00:42 +0100
vim: don't auto-proselint markdown files, some issues with goyo
Former-commit-id: d82879b6fe49ff3ecbad7f9927f37eac487c92b6
Diffstat:
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim
@@ -15,23 +15,23 @@ inoremap <buffer> , ,<c-g>u
nnoremap <buffer> <leader><CR> :silent !open "%<.pdf"<CR>:redraw!<CR>
" Autocommands
-if g:loaded_dispatch
- augroup markdown_autocmds
- au! * <buffer>
- au BufWrite <buffer> Dispatch proselint %
- augroup END
-else
- function! s:proselint_buffer()
- compiler proselint
- make
- copen
- compiler markdown
- endfunction
- augroup markdown_autocmds
- au! * <buffer>
- au BufWrite <buffer> call s:proselint_buffer()
- augroup END
-endif
+" if g:loaded_dispatch
+" augroup markdown_autocmds
+" au! * <buffer>
+" au BufWrite <buffer> Dispatch proselint %
+" augroup END
+" else
+" function! s:proselint_buffer()
+" compiler proselint
+" make
+" copen
+" compiler markdown
+" endfunction
+" augroup markdown_autocmds
+" au! * <buffer>
+" au BufWrite <buffer> call s:proselint_buffer()
+" augroup END
+" endif
" Settings
compiler markdown
@@ -44,5 +44,5 @@ if !exists('b:undo_ftplugin')
endif
let b:undo_ftplugin .= '| imapc <buffer>'
let b:undo_ftplugin .= '| nmapc <buffer>'
-let b:undo_ftplugin .= '| execute "au! markdown_autocmds * <buffer>"'
+" let b:undo_ftplugin .= '| execute "au! markdown_autocmds * <buffer>"'
let b:undo_ftplugin .= '| setlocal makeprg< conceallevel< wrap<'